public final class SslTrustVerifier extends Object implements TrustVerifier
SslEndpoint
, HttpsEndpoint
, and
ConfidentialityStrength
classes. Also trusts principals of type
X500Principal
. This class is intended to be specified in a resource
to configure the operation of Security.verifyObjectTrust
.SslEndpoint
,
HttpsEndpoint
,
ConfidentialityStrength
TrustVerifier.Context
Constructor and Description |
---|
SslTrustVerifier()
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns
true if the object is an instance of SslEndpoint or HttpsEndpoint , and it's SocketFactory is
either null or trusted by the specified
TrustVerifier.Context ; or if the object is an instance of
ConfidentialityStrength or X500Principal ; and returns
false otherwise. |
public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
true
if the object is an instance of SslEndpoint
or HttpsEndpoint
, and it's SocketFactory
is
either null
or trusted by the specified
TrustVerifier.Context
; or if the object is an instance of
ConfidentialityStrength
or X500Principal
; and returns
false
otherwise.isTrustedObject
in interface TrustVerifier
RemoteException
- if a communication-related exception occurs
when verifying a socket factorySecurityException
- if a security exception occurs when verifying
a socket factoryNullPointerException
Copyright © 2016–2018. All rights reserved.