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:
doAsAllows access to the Subject#doAs(javax.security.auth.Subject java.security.PrivilegedAction)
methods.
doAsPrivilegedAllows access to the Subject.doAsPrivileged(javax.security.auth.Subject,
java.security.PrivilegedAction, java.security.AccessControlContext)
methods.
getSubjectAllows access to the Subject associated with a
thread.
getSubjectFromDomainCombinerAllows access to the Subject associated with a
SubjectDomainCombiner.
setReadOnlyAllows a Subject to be marked as read-only.
modifyPrincipalsAllows the set of principals of a subject to be modified.
modifyPublicCredentialsAllows the set of public credentials of a subject to be modified.
modifyPrivateCredentialsAllows the set of private credentials of a subject to be modified.
refreshCredentialAllows a Refreshable credential to be refreshed.
destroyCredentialAllows a Destroyable credential to be destroyed.
createLoginContext.nameAllows a LoginContext for the
given name. name can also be a wildcard ('*'),
which allows the creation of a context with any name.
getLoginConfigurationAllows the system-wide login Configuration to be retrieved.
setLoginConfigurationAllows the system-wide login Configuration to be set.
refreshLoginConfigurationAllows the system-wide login Configuration to be refreshed.
| Constructor and Description |
|---|
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.
|
equals, getActions, hashCode, implies, newPermissionCollectioncheckGuard, getName, toStringpublic AuthPermission(String name)
name - The target name.public AuthPermission(String name, String actions)
name - The target name.actions - The action list.