public class KerberosTrustVerifier extends Object implements TrustVerifier
KerberosEndpoint
,
and principals of type KerberosPrincipal
. This class is
intended to be specified in a resource to configure the operation
of Security.verifyObjectTrust
.KerberosEndpoint
TrustVerifier.Context
Constructor and Description |
---|
KerberosTrustVerifier()
Creates a
Security.TrustVerifier for this package. |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns
true if the object is an instance of
KerberosEndpoint and the SocketFactory it
uses internally, if not null , is trusted by the
given TrustVerifier.Context , or the object is an
instance of KerberosPrincipal . |
public KerberosTrustVerifier()
Security.TrustVerifier
for this package.public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
true
if the object is an instance of
KerberosEndpoint
and the SocketFactory
it
uses internally, if not null
, is trusted by the
given TrustVerifier.Context
, or the object is an
instance of KerberosPrincipal
. 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.