JavaTM 2 Platform
Standard Ed. 6

類別 javax.security.auth.Subject
的使用

使用 Subject 的軟體套件
java.security 為安全框架提供類別和介面。 
javax.management.remote 對 JMX MBean 伺服器進行遠端存取使用的介面。 
javax.management.remote.rmi RMI 連接器是供 JMX Remote API 使用的一種連接器,後者使用 RMI 將客戶端請求傳輸到遠端 MBean 伺服器。 
javax.security.auth 此套件提供用於進行驗證和授權的框架。 
javax.security.auth.login 此套件提供可插入的驗證框架。 
javax.security.auth.spi 此套件提供用於實作可插入驗證模組的介面。 
 

java.securitySubject 的使用
 

參數型別為 Subjectjava.security 中的方法
abstract  void AuthProvider.login(Subject subject, CallbackHandler handler)
          登錄到此 provider 中。
 

javax.management.remoteSubject 的使用
 

返回 Subjectjavax.management.remote 中的方法
 Subject JMXAuthenticator.authenticate(Object credentials)
          用給定的客戶端憑據驗證 MBeanServerConnection 客戶端。
 

參數型別為 Subjectjavax.management.remote 中的方法
 MBeanServerConnection JMXConnector.getMBeanServerConnection(Subject delegationSubject)
          返回 MBeanServerConnection 物件,它表示在其上執行代表提供的委託主題操作的遠端 MBean 伺服器。
 

javax.management.remote.rmiSubject 的使用
 

參數型別為 Subjectjavax.management.remote.rmi 中的方法
 void RMIConnection.addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
          處理 MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.addNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5)
           
 Integer[] RMIConnection.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)
          處理 MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) 方法。
 Integer[] RMIConnectionImpl.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)
           
 Integer[] RMIConnectionImpl_Stub.addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
          處理 MBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
          處理 MBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, MarshalledObject $param_MarshalledObject_4, String[] $param_arrayOf_String_5, Subject $param_Subject_6)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
          處理 MBeanServerConnection.createMBean(String, ObjectName, ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.createMBean(String, ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3)
           
 Object RMIConnection.getAttribute(ObjectName name, String attribute, Subject delegationSubject)
          處理 MBeanServerConnection.getAttribute(ObjectName, String) 方法。
 Object RMIConnectionImpl.getAttribute(ObjectName name, String attribute, Subject delegationSubject)
           
 Object RMIConnectionImpl_Stub.getAttribute(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3)
           
 AttributeList RMIConnection.getAttributes(ObjectName name, String[] attributes, Subject delegationSubject)
          處理 MBeanServerConnection.getAttributes(ObjectName, String[]) 方法。
 AttributeList RMIConnectionImpl.getAttributes(ObjectName name, String[] attributes, Subject delegationSubject)
           
 AttributeList RMIConnectionImpl_Stub.getAttributes(ObjectName $param_ObjectName_1, String[] $param_arrayOf_String_2, Subject $param_Subject_3)
           
 String RMIConnection.getDefaultDomain(Subject delegationSubject)
          處理 MBeanServerConnection.getDefaultDomain() 方法。
 String RMIConnectionImpl.getDefaultDomain(Subject delegationSubject)
           
 String RMIConnectionImpl_Stub.getDefaultDomain(Subject $param_Subject_1)
           
 String[] RMIConnection.getDomains(Subject delegationSubject)
          處理 MBeanServerConnection.getDomains() 方法。
 String[] RMIConnectionImpl.getDomains(Subject delegationSubject)
           
 String[] RMIConnectionImpl_Stub.getDomains(Subject $param_Subject_1)
           
 Integer RMIConnection.getMBeanCount(Subject delegationSubject)
          處理 MBeanServerConnection.getMBeanCount() 方法。
 Integer RMIConnectionImpl.getMBeanCount(Subject delegationSubject)
           
 Integer RMIConnectionImpl_Stub.getMBeanCount(Subject $param_Subject_1)
           
 MBeanInfo RMIConnection.getMBeanInfo(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.getMBeanInfo(ObjectName) 方法。
 MBeanInfo RMIConnectionImpl.getMBeanInfo(ObjectName name, Subject delegationSubject)
           
 MBeanInfo RMIConnectionImpl_Stub.getMBeanInfo(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 MBeanServerConnection RMIConnector.getMBeanServerConnection(Subject delegationSubject)
           
 ObjectInstance RMIConnection.getObjectInstance(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.getObjectInstance(ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.getObjectInstance(ObjectName name, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.getObjectInstance(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 Object RMIConnection.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
          處理 MBeanServerConnection.invoke(ObjectName, String, Object[], String[]) 方法。
 Object RMIConnectionImpl.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 Object RMIConnectionImpl_Stub.invoke(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5)
           
 boolean RMIConnection.isInstanceOf(ObjectName name, String className, Subject delegationSubject)
          處理 MBeanServerConnection.isInstanceOf(ObjectName, String) 方法。
 boolean RMIConnectionImpl.isInstanceOf(ObjectName name, String className, Subject delegationSubject)
           
 boolean RMIConnectionImpl_Stub.isInstanceOf(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3)
           
 boolean RMIConnection.isRegistered(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.isRegistered(ObjectName) 方法。
 boolean RMIConnectionImpl.isRegistered(ObjectName name, Subject delegationSubject)
           
 boolean RMIConnectionImpl_Stub.isRegistered(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
protected  RMIConnection RMIIIOPServerImpl.makeClient(String connectionId, Subject subject)
          創建一個如同從 IIOP 導出的 RMI 物件的新客戶端連接。
protected  RMIConnection RMIJRMPServerImpl.makeClient(String connectionId, Subject subject)
          創建一個如同從 JRMP 導出的 RMI 物件的新的客戶端連接。
protected abstract  RMIConnection RMIServerImpl.makeClient(String connectionId, Subject subject)
          創建一個新的客戶端連接。
 Set<ObjectInstance> RMIConnection.queryMBeans(ObjectName name, MarshalledObject query, Subject delegationSubject)
          處理 MBeanServerConnection.queryMBeans(ObjectName, QueryExp) 方法。
 Set<ObjectInstance> RMIConnectionImpl.queryMBeans(ObjectName name, MarshalledObject query, Subject delegationSubject)
           
 Set RMIConnectionImpl_Stub.queryMBeans(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 Set<ObjectName> RMIConnection.queryNames(ObjectName name, MarshalledObject query, Subject delegationSubject)
          處理 MBeanServerConnection.queryNames(ObjectName, QueryExp) 方法。
 Set<ObjectName> RMIConnectionImpl.queryNames(ObjectName name, MarshalledObject query, Subject delegationSubject)
           
 Set RMIConnectionImpl_Stub.queryNames(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 void RMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
          處理 MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5)
           
 void RMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject)
          處理 MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) 方法。
 void RMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3)
           
 void RMIConnection.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject)
          處理 removeNotificationListener(ObjectName, NotificationListener)removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3)
           
 void RMIConnection.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
          處理 MBeanServerConnection.setAttribute(ObjectName, Attribute) 方法。
 void RMIConnectionImpl.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.setAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 AttributeList RMIConnection.setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
          處理 MBeanServerConnection.setAttributes(ObjectName, AttributeList) 方法。
 AttributeList RMIConnectionImpl.setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
           
 AttributeList RMIConnectionImpl_Stub.setAttributes(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 void RMIConnection.unregisterMBean(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.unregisterMBean(ObjectName) 方法。
 void RMIConnectionImpl.unregisterMBean(ObjectName name, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.unregisterMBean(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 

參數型別為 Subjectjavax.management.remote.rmi 中的建構子
RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String,?> env)
          建構新的 RMIConnection
 

javax.security.authSubject 的使用
 

返回 Subjectjavax.security.auth 中的方法
 Subject SubjectDomainCombiner.getSubject()
          獲取與此 SubjectDomainCombiner 關聯的 Subject
static Subject Subject.getSubject(AccessControlContext acc)
          獲取與提供的 AccessControlContext 關聯的 Subject
 

參數型別為 Subjectjavax.security.auth 中的方法
static
<T> T
Subject.doAs(Subject subject, PrivilegedAction<T> action)
          作為特定的 Subject 的功能。
static
<T> T
Subject.doAs(Subject subject, PrivilegedExceptionAction<T> action)
          作為特定的 Subject 的功能。
static
<T> T
Subject.doAsPrivileged(Subject subject, PrivilegedAction<T> action, AccessControlContext acc)
          作為特定的 Subject 的特權功能。
static
<T> T
Subject.doAsPrivileged(Subject subject, PrivilegedExceptionAction<T> action, AccessControlContext acc)
          作為特定的 Subject 的特權功能。
abstract  PermissionCollection Policy.getPermissions(Subject subject, CodeSource cs)
          已過時。 獲取授予與指定的 CodeSource 關聯的 Principals 的 Permissions。
 

參數型別為 Subjectjavax.security.auth 中的建構子
SubjectDomainCombiner(Subject subject)
          將提供的 Subject 與此 SubjectDomainCombiner 關聯。
 

javax.security.auth.loginSubject 的使用
 

返回 Subjectjavax.security.auth.login 中的方法
 Subject LoginContext.getSubject()
          返回已進行驗證的 Subject。
 

參數型別為 Subjectjavax.security.auth.login 中的建構子
LoginContext(String name, Subject subject)
          使用 name 和 Subject 物件實例化一個新 LoginContext 物件。
LoginContext(String name, Subject subject, CallbackHandler callbackHandler)
          使用 name、要進行驗證的 SubjectCallbackHandler 物件實例化一個新 LoginContext 物件。
LoginContext(String name, Subject subject, CallbackHandler callbackHandler, Configuration config)
          使用 name、要進行驗證的 SubjectCallbackHandler 物件和登錄 Configuration 來實例化一個新 LoginContext 物件。
 

javax.security.auth.spiSubject 的使用
 

參數型別為 Subjectjavax.security.auth.spi 中的方法
 void LoginModule.initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
          初始化此 LoginModule。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only