Class SpnegoCredential
java.lang.Object
org.apereo.cas.authentication.credential.AbstractCredential
org.apereo.cas.support.spnego.authentication.principal.SpnegoCredential
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.Credential
public class SpnegoCredential
extends org.apereo.cas.authentication.credential.AbstractCredential
Credential that are a holder for SPNEGO init token.
- Since:
- 3.1
- See Also:
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.Credential
CREDENTIAL_TYPE_ATTRIBUTE, UNKNOWN_ID -
Constructor Summary
ConstructorsConstructorDescriptionSpnegoCredential(byte[] initToken) SpnegoCredential(byte[] initToken, byte[] nextToken, org.apereo.cas.authentication.principal.Principal principal, boolean isNtlm) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()byte[]The SPNEGO Init Token.byte[]The SPNEGO Next Token.org.apereo.cas.authentication.principal.PrincipalThe Principal.inthashCode()booleanisNtlm()The authentication type should be Kerberos or NTLM.voidsetInitToken(byte[] initToken) The SPNEGO Init Token.voidsetNextToken(byte[] nextToken) The SPNEGO Next Token.voidsetNtlm(boolean isNtlm) The authentication type should be Kerberos or NTLM.voidsetPrincipal(org.apereo.cas.authentication.principal.Principal principal) The Principal.toString()Methods inherited from class org.apereo.cas.authentication.credential.AbstractCredential
getCredentialMetadata, isValid, setCredentialMetadata, validate
-
Constructor Details
-
SpnegoCredential
public SpnegoCredential(byte[] initToken) -
SpnegoCredential
public SpnegoCredential() -
SpnegoCredential
public SpnegoCredential(byte[] initToken, byte[] nextToken, org.apereo.cas.authentication.principal.Principal principal, boolean isNtlm)
-
-
Method Details
-
getId
-
toString
- Overrides:
toStringin classorg.apereo.cas.authentication.credential.AbstractCredential
-
setInitToken
public void setInitToken(byte[] initToken) The SPNEGO Init Token. -
setNextToken
public void setNextToken(byte[] nextToken) The SPNEGO Next Token. -
setPrincipal
public void setPrincipal(org.apereo.cas.authentication.principal.Principal principal) The Principal. -
setNtlm
public void setNtlm(boolean isNtlm) The authentication type should be Kerberos or NTLM. -
getInitToken
public byte[] getInitToken()The SPNEGO Init Token. -
getNextToken
public byte[] getNextToken()The SPNEGO Next Token. -
getPrincipal
public org.apereo.cas.authentication.principal.Principal getPrincipal()The Principal. -
isNtlm
public boolean isNtlm()The authentication type should be Kerberos or NTLM. -
equals
- Overrides:
equalsin classorg.apereo.cas.authentication.credential.AbstractCredential
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apereo.cas.authentication.credential.AbstractCredential
-