Name

AuthPermission

Synopsis

This java.security.Permission class governs the use of various methods in this package and its subpackages. The target name of the permission specifies which methods are allowed; AuthPermission objects have no actions list. Application programmers never need to use this class directly. System implementors may need to use it, and system administrators who configure security policies may need to be familiar with the following table of target names and the permissions they represent:

Target name

Gives permission to

doAs

Invoke Subject.doAs( ) methods.

doAsPrivileged

Invoke Subject.doAsPriviliged( ) 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 of a Refreshable credential class.

destroyCredential

Invoke the destroy( ) method of a Destroyable credential class.

createLoginContext.name

Instantiate a LoginContext with the specified name. If name is * , it allows a LoginContext of any name to be created.

getLoginConfiguration

Invoke the getConfiguration( ) method of javax.security.auth.login.Configuration.

setLoginConfiguration ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.