public interface JMXAuthenticator
接口定义如何远程证书转换为JAAS主题。该接口由RMI连接器服务器使用,并且可以通过其他连接器服务器使用。
自定义验证器实例的属性JMXConnectorServer.AUTHENTICATOR
价值传递给环境Map的连接器服务器。连接器服务器只使用这个认证系统,如果该属性不存在或它的价值null
然后没有认证的用户将进行完全访问方法的对象将被允许MBeanServerConnection
出口。
如果认证成功然后认证subject
填入相关principals
返回。将根据给定的委托人进行授权检查。
Modifier and Type | Method and Description |
---|---|
Subject |
authenticate(Object credentials)
认证
MBeanServerConnection 客户端与给定的客户端证书。
|
Subject authenticate(Object credentials)
认证MBeanServerConnection
客户端与给定的客户端证书。
credentials
-用户凭据被传递到服务器进行验证的用户在创建
MBeanServerConnection
。此参数的实际类型,以及它是否可以为空,取决于连接器。
SecurityException
-如果服务器无法验证用户提供的凭据。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.