Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 985
نمايش فراداده

AuthPermissionjavax.security.auth

Java 1.4serializable permission

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

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

refreshLoginConfiguration

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

javax.security.auth.AuthPermission

public final class

AuthPermission extends java.security.BasicPermission { // Public Constructors public

AuthPermission (String

name ); public

AuthPermission (String

name , String

actions ); }