Class KerberosServiceSecurityTokenImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
-
- org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
-
- org.apache.wss4j.stax.impl.securityToken.KerberosServiceSecurityTokenImpl
-
- All Implemented Interfaces:
KerberosServiceSecurityToken
,SubjectAndPrincipalSecurityToken
,org.apache.xml.security.stax.securityToken.InboundSecurityToken
,org.apache.xml.security.stax.securityToken.SecurityToken
public class KerberosServiceSecurityTokenImpl extends org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken implements KerberosServiceSecurityToken
-
-
Constructor Summary
Constructors Constructor Description KerberosServiceSecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, CallbackHandler callbackHandler, byte[] binaryContent, String kerberosTokenValueType, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBinaryContent()
KerberosTokenDecoder
getKerberosTokenDecoder()
Get the KerberosTokenDecoder instance used to extract a session key from the received Kerberos token.String
getKerberosTokenValueType()
protected Key
getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)
Principal
getPrincipal()
Subject
getSubject()
protected byte[]
getTGTSessionKey()
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType
getTokenType()
boolean
isAsymmetric()
void
setKerberosTokenDecoder(KerberosTokenDecoder kerberosTokenDecoder)
Set the KerberosTokenDecoder instance used to extract a session key from the received Kerberos token.-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getKeyWrappingToken, getPubKey, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent, verify
-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
-
-
-
-
Constructor Detail
-
KerberosServiceSecurityTokenImpl
public KerberosServiceSecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, CallbackHandler callbackHandler, byte[] binaryContent, String kerberosTokenValueType, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier)
-
-
Method Detail
-
isAsymmetric
public boolean isAsymmetric() throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
isAsymmetric
in interfaceorg.apache.xml.security.stax.securityToken.SecurityToken
- Overrides:
isAsymmetric
in classorg.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getTokenType
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
- Specified by:
getTokenType
in interfaceorg.apache.xml.security.stax.securityToken.SecurityToken
-
getTGTSessionKey
protected byte[] getTGTSessionKey() throws WSSecurityException
- Throws:
WSSecurityException
-
getKey
protected Key getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws org.apache.xml.security.exceptions.XMLSecurityException
- Overrides:
getKey
in classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getBinaryContent
public byte[] getBinaryContent()
- Specified by:
getBinaryContent
in interfaceKerberosServiceSecurityToken
-
getKerberosTokenValueType
public String getKerberosTokenValueType()
- Specified by:
getKerberosTokenValueType
in interfaceKerberosServiceSecurityToken
-
getSubject
public Subject getSubject() throws WSSecurityException
- Specified by:
getSubject
in interfaceSubjectAndPrincipalSecurityToken
- Throws:
WSSecurityException
-
getPrincipal
public Principal getPrincipal() throws WSSecurityException
- Specified by:
getPrincipal
in interfaceSubjectAndPrincipalSecurityToken
- Throws:
WSSecurityException
-
getKerberosTokenDecoder
public KerberosTokenDecoder getKerberosTokenDecoder()
Get the KerberosTokenDecoder instance used to extract a session key from the received Kerberos token.- Returns:
- the KerberosTokenDecoder instance used to extract a session key
-
setKerberosTokenDecoder
public void setKerberosTokenDecoder(KerberosTokenDecoder kerberosTokenDecoder)
Set the KerberosTokenDecoder instance used to extract a session key from the received Kerberos token.- Parameters:
kerberosTokenDecoder
- the KerberosTokenDecoder instance used to extract a session key
-
-