public final class AuthPermission extends BasicPermission
ターゲット名には、セキュリティー構成パラメータの名前 (下記を参照) を指定します。現在のところ、AuthPermission オブジェクトを使用して、Policy、Subject、LoginContext、および Configuration オブジェクトへのアクセスを保護します。
認証アクセス権で使用可能なターゲット名を次に示します。
doAs - allow the caller to invoke the
Subject.doAs methods.
doAsPrivileged - allow the caller to invoke the
Subject.doAsPrivileged methods.
getSubject - allow for the retrieval of the
Subject(s) associated with the
current Thread.
getSubjectFromDomainCombiner - allow for the retrieval of the
Subject associated with the
a SubjectDomainCombiner.
setReadOnly - allow the caller to set a Subject
to be read-only.
modifyPrincipals - allow the caller to modify the Set
of Principals associated with a
Subject
modifyPublicCredentials - allow the caller to modify the
Set of public credentials
associated with a Subject
modifyPrivateCredentials - allow the caller to modify the
Set of private credentials
associated with a Subject
refreshCredential - allow code to invoke the refresh
method on a credential which implements
the Refreshable interface.
destroyCredential - allow code to invoke the destroy
method on a credential object
which implements the Destroyable
interface.
createLoginContext.{name} - allow code to instantiate a
LoginContext with the
specified name. name
is used as the index into the installed login
Configuration
(that returned by
Configuration.getConfiguration()).
name can be wildcarded (set to '*')
to allow for any name.
getLoginConfiguration - allow for the retrieval of the system-wide
login Configuration.
createLoginConfiguration.{type} - allow code to obtain a Configuration
object via
Configuration.getInstance.
setLoginConfiguration - allow for the setting of the system-wide
login Configuration.
refreshLoginConfiguration - allow for the refreshing of the system-wide
login Configuration.
createLoginContext.{name} が推奨され、次のターゲット名は非推奨になりました。
createLoginContext - allow code to instantiate a
LoginContext.
java.security.Policy が推奨され、javax.security.auth.Policy は非推奨になりました。そのため、次のターゲット名も非推奨になりました。
getPolicy - allow the caller to retrieve the system-wide
Subject-based access control policy.
setPolicy - allow the caller to set the system-wide
Subject-based access control policy.
refreshPolicy - allow the caller to refresh the system-wide
Subject-based access control policy.
| コンストラクタと説明 |
|---|
AuthPermission(String name)
指定された名前で AuthPermission を新しく作成します。
|
AuthPermission(String name, String actions)
指定された名前で AuthPermission オブジェクトを新しく作成します。
|
equals, getActions, hashCode, implies, newPermissionCollectioncheckGuard, getName, toStringpublic AuthPermission(String name)
name - AuthPermission の名前NullPointerException - name が null である場合。IllegalArgumentException - name が空である場合。public AuthPermission(String name, String actions)
name - AuthPermission の名前actions - null でなければならない。NullPointerException - name が null である場合。IllegalArgumentException - name が空である場合。 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.