org.apache.wss4j.stax.impl.securityToken
Class KerberosServiceSecurityTokenImpl

java.lang.Object
  extended by org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
      extended by org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
          extended by 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


Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
 
Constructor Summary
KerberosServiceSecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, CallbackHandler callbackHandler, byte[] binaryContent, String kerberosTokenValueType, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier)
           
 
Method Summary
 byte[] getBinaryContent()
           
 String getKerberosTokenValueType()
           
protected  Key getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)
           
 Principal getPrincipal()
           
 Subject getSubject()
           
protected  KerberosTokenDecoder getTGT()
           
 org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
           
 boolean isAsymmetric()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken
addTokenUsage, getId, getKeyIdentifier, getKeyWrappingToken, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getWrappedTokens, getX509Certificates
 

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 interface org.apache.xml.security.stax.securityToken.SecurityToken
Overrides:
isAsymmetric in class org.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 interface org.apache.xml.security.stax.securityToken.SecurityToken

getTGT

protected KerberosTokenDecoder getTGT()
                               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 class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

getBinaryContent

public byte[] getBinaryContent()
Specified by:
getBinaryContent in interface KerberosServiceSecurityToken

getKerberosTokenValueType

public String getKerberosTokenValueType()
Specified by:
getKerberosTokenValueType in interface KerberosServiceSecurityToken

getSubject

public Subject getSubject()
                   throws WSSecurityException
Specified by:
getSubject in interface SubjectAndPrincipalSecurityToken
Throws:
WSSecurityException

getPrincipal

public Principal getPrincipal()
                       throws WSSecurityException
Specified by:
getPrincipal in interface SubjectAndPrincipalSecurityToken
Throws:
WSSecurityException


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.