823N/A * The contents of this file are subject to the terms of the 823N/A * Common Development and Distribution License, Version 1.0 only 823N/A * (the "License"). You may not use this file except in compliance 823N/A * You can obtain a copy of the license at 823N/A * See the License for the specific language governing permissions 823N/A * and limitations under the License. 823N/A * When distributing Covered Code, include this CDDL HEADER in each 823N/A * file and include the License file at 823N/A * add the following below this CDDL HEADER, with the fields enclosed 873N/A * by brackets "[]" replaced with your own identifying information: 823N/A * Portions Copyright [yyyy] [name of copyright owner] 3215N/A * Copyright 2008 Sun Microsystems, Inc. 823N/A * A class representing the permissions of an bind rule. The permissions 823N/A * of an ACI look like deny(search, write). 897N/A * The access type (allow,deny) corresponding to the ACI permission value. 897N/A * The rights (search, add, delete, ...) corresponding to the ACI rights 897N/A * Regular expression token representing the separator. 897N/A * Regular expression used to match the ACI rights string. 823N/A * Constructor creating a class representing a permission part of an bind 823N/A * @param accessType A string representing access type. 823N/A * @param rights A string representing the rights. 823N/A * @throws AciException If the access type string or rights string 823N/A * Decode an string representation of bind rule permission into a Permission 823N/A * @param accessType A string representing the access type. 823N/A * @param rights A string representing the rights. 823N/A * @return A Permission class representing the permissions of the bind 823N/A * @throws AciException If the accesstype or rights strings are invalid. 823N/A * Checks if a given access type enumeration is equal to this classes 823N/A * @param accessType An enumeration representing an access type. 823N/A * @return True if the access types are equal. 823N/A * Checks if the permission's rights has the specified rights. 823N/A * @param rights The rights to check for. 823N/A * @return True if the permission's rights has the specified rights.