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 aGSSCredential
and optionally an associatedKerberosTicket
.
-
-
Field Summary
Fields Modifier and Type Field Description private GSSCredential
gssCredential
private KerberosTicket
kerberosTicket
-
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 GSSKerberosCredential
clone()
Creates and returns a copy of thisCredential
.boolean
equals(Object obj)
private boolean
equals(GSSKerberosCredential obj)
GSSCredential
getGssCredential()
Get the GSS credential.KerberosTicket
getKerberosTicket()
Get the associated kerberos ticket.int
hashCode()
-
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
-
-
-
-
Field Detail
-
gssCredential
private final GSSCredential gssCredential
-
kerberosTicket
private final KerberosTicket kerberosTicket
-
-
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
null
if one is not associated.
-
clone
public GSSKerberosCredential clone()
Description copied from interface:Credential
Creates and returns a copy of thisCredential
.- Specified by:
clone
in interfaceCredential
- Overrides:
clone
in classObject
- Returns:
- a copy of this
Credential
.
-
equals
private boolean equals(GSSKerberosCredential obj)
-
-