Package org.wildfly.security.credential
Class GSSKerberosCredential
- java.lang.Object
-
- org.wildfly.security.credential.GSSKerberosCredential
-
- All Implemented Interfaces:
Cloneable,Credential
public final class GSSKerberosCredential extends Object implements Credential
A credential for holding aGSSCredentialand optionally an associatedKerberosTicket.
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.credential.Credential
NO_CREDENTIALS
-
-
Constructor Summary
Constructors Constructor Description GSSKerberosCredential(GSSCredential gssCredential)Construct a new instance.GSSKerberosCredential(GSSCredential gssCredential, KerberosTicket kerberosTicket)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GSSKerberosCredentialclone()Creates and returns a copy of thisCredential.booleanequals(Object obj)GSSCredentialgetGssCredential()Get the GSS credential.KerberosTicketgetKerberosTicket()Get the associated kerberos ticket.inthashCode()-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.credential.Credential
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, matches, matches, matches, verify, verify
-
-
-
-
Constructor Detail
-
GSSKerberosCredential
public GSSKerberosCredential(GSSCredential gssCredential)
Construct a new instance.- Parameters:
gssCredential- the GSS credential (may not benull)
-
GSSKerberosCredential
public GSSKerberosCredential(GSSCredential gssCredential, KerberosTicket kerberosTicket)
Construct a new instance.- Parameters:
gssCredential- the GSS credential (may not benull)kerberosTicket- the associated Kerberos ticket which may benull.
-
-
Method Detail
-
getGssCredential
public GSSCredential getGssCredential()
Get the GSS credential.- Returns:
- the GSS credential (not
null)
-
getKerberosTicket
public KerberosTicket getKerberosTicket()
Get the associated kerberos ticket.- Returns:
- the associated kerberos ticker or
nullif one is not associated.
-
clone
public GSSKerberosCredential clone()
Description copied from interface:CredentialCreates and returns a copy of thisCredential.- Specified by:
clonein interfaceCredential- Overrides:
clonein classObject- Returns:
- a copy of this
Credential.
-
-