javax.security.auth
Class AuthPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by javax.security.auth.AuthPermission
All Implemented Interfaces:
Serializable, Guard

public final class AuthPermission
extends BasicPermission

A permission controlling access to authentication service. The actions field of auth permission objects is ignored; the whole of the permission is defined by the target.

The authentication permission targets recognized are:

doAs

Allows access to the Subject#doAs(javax.security.auth.Subject java.security.PrivilegedAction) methods.

doAsPrivileged

Allows access to the Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedAction, java.security.AccessControlContext) methods.

getSubject

Allows access to the Subject associated with a thread.

getSubjectFromDomainCombiner

Allows access to the Subject associated with a SubjectDomainCombiner.

setReadOnly

Allows a Subject to be marked as read-only.

modifyPrincipals

Allows the set of principals of a subject to be modified.

modifyPublicCredentials

Allows the set of public credentials of a subject to be modified.

modifyPrivateCredentials

Allows the set of private credentials of a subject to be modified.

refreshCredential

Allows a Refreshable credential to be refreshed.

destroyCredential

Allows a Destroyable credential to be destroyed.

createLoginContext.name

Allows a LoginContext for the given name. name can also be a wildcard ('*'), which allows the creation of a context with any name.

getLoginConfiguration

Allows the system-wide login Configuration to be retrieved.

setLoginConfiguration

Allows the system-wide login Configuration to be set.

refreshLoginConfiguration

Allows the system-wide login Configuration to be refreshed.

See Also:
Serialized Form

Constructor Summary
AuthPermission(String name)
          Creates a new authentication permission for the given target name.
AuthPermission(String name, String actions)
          Creates a new authentication permission for the given target name.
 
Method Summary
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthPermission

public AuthPermission(String name)
Creates a new authentication permission for the given target name.

Parameters:
name - The target name.

AuthPermission

public AuthPermission(String name,
                      String actions)
Creates a new authentication permission for the given target name. The actions list is not used by this class.

Parameters:
name - The target name.
actions - The action list.