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
obj
- the object in which to verify trustctx
- the trust verifier context, to aid in verification of
the specified object and its componentstrue
if the specified object is known to be
trusted to correctly implement its contract; false
otherwiseRemoteException
- if a communication-related exception occurs
when verifying a socket factorySecurityException
- if a security exception occurs when verifying
a socket factoryNullPointerException
- if any argument is null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.