public final class

AuthPermission

extends BasicPermission
java.lang.Object
   ↳ java.security.Permission
     ↳ java.security.BasicPermission
       ↳ javax.security.auth.AuthPermission

Class Overview

Governs the use of methods in this package and also its subpackages. A target name of the permission specifies which methods are allowed without specifying the concrete action lists. Possible target names and associated authentication permissions are:

    doAs                      invoke Subject.doAs methods.
    doAsPrivileged            invoke the Subject.doAsPrivileged methods.
    getSubject                invoke Subject.getSubject().
    getSubjectFromDomainCombiner    invoke SubjectDomainCombiner.getSubject().
    setReadOnly               invoke Subject.setReadonly().
    modifyPrincipals          modify the set of principals
                              associated with a Subject.
    modifyPublicCredentials   modify the set of public credentials
                              associated with a Subject.
    modifyPrivateCredentials  modify the set of private credentials
                              associated with a Subject.
    refreshCredential         invoke the refresh method on a credential of a
                              refreshable credential class.
    destroyCredential         invoke the destroy method on a credential of a
                              destroyable credential class.
    createLoginContext.name   instantiate a LoginContext with the
                              specified name. The wildcard name ('*')
                              allows to a LoginContext of any name.
    getLoginConfiguration     invoke the getConfiguration method of
                              javax.security.auth.login.Configuration.
    refreshLoginConfiguration Invoke the refresh method of
                              javax.security.auth.login.Configuration.
 

Summary

Public Constructors
AuthPermission(String name)
Creates an authentication permission with the specified target name.
AuthPermission(String name, String actions)
Creates an authentication permission with the specified target name.
[Expand]
Inherited Methods
From class java.security.BasicPermission
From class java.security.Permission
From class java.lang.Object
From interface java.security.Guard

Public Constructors

public AuthPermission (String name)

Since: API Level 1

Creates an authentication permission with the specified target name.

Parameters
name the target name of this authentication permission.

public AuthPermission (String name, String actions)

Since: API Level 1

Creates an authentication permission with the specified target name.

Parameters
name the target name of this authentication permission.
actions this parameter is ignored and should be null.