Top Fields Constructors Methods
javax.security.auth.kerberos

pack-priv final Class KrbServicePermissionCollection

Located in compilation unit of javax.security.auth.kerberos.ServicePermission.

extends PermissionCollection
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
private transient ConcurrentHashMap<String, Permission>
private static final ObjectStreamField[]
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(Permission
the Permission object to add.
permission
)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the ServicePermissions.
public Enumeration<Permission>

Returns:

an enumeration of all the ServicePermission objects.
elements
()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the ServicePermission objects in the container.
public boolean

Returns:

true if "permission" is a proper subset of a permission in the collection, false if not.
implies
(Permission
the Permission object to compare
permission
)

Implements abstract java.security.PermissionCollection.implies.

Check and see if this collection of permissions implies the permissions expressed in "permission".
private void
private void
Inherited from java.security.PermissionCollection:
elementsAsStreamisReadOnlysetReadOnlytoString

Field Detail

permsback to summary
private transient ConcurrentHashMap<String, Permission> perms
serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields
Annotations
@Serial
Serial Fields:
permissions:Vector
A list of ServicePermission objects.
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PermissionCollection.serialVersionUID.

Annotations
@Serial

Constructor Detail

KrbServicePermissionCollectionback to summary
public KrbServicePermissionCollection()

Method Detail

addback to summary
public void add(Permission permission)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the ServicePermissions. The key for the hash is the name.

Parameters
permission:Permission

the Permission object to add.

Annotations
@Override
Exceptions
IllegalArgumentException:
- if the permission is not a ServicePermission
SecurityException:
- if this PermissionCollection object has been marked readonly
elementsback to summary
public Enumeration<Permission> elements()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the ServicePermission objects in the container.

Returns:Enumeration<Permission>

an enumeration of all the ServicePermission objects.

Annotations
@Override
impliesback to summary
public boolean implies(Permission permission)

Implements abstract java.security.PermissionCollection.implies.

Check and see if this collection of permissions implies the permissions expressed in "permission".

Parameters
permission:Permission

the Permission object to compare

Returns:boolean

true if "permission" is a proper subset of a permission in the collection, false if not.

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Annotations
@Serial
@SuppressWarnings:unchecked
writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException
Annotations
@Serial
Serial data
"permissions" field (a Vector containing the ServicePermissions).