Class SecurityTokenReferenceImpl

  • All Implemented Interfaces:
    SecurityTokenReference, org.apache.xml.security.stax.securityToken.InboundSecurityToken, org.apache.xml.security.stax.securityToken.SecurityToken

    public class SecurityTokenReferenceImpl
    extends org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
    implements SecurityTokenReference
    • Field Summary

      • Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken

        keyTable, tokenUsages
    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityTokenReferenceImpl​(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent> xmlSecEvents, WSInboundSecurityContext wsInboundSecurityContext, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Key getKey​(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)  
      org.apache.xml.security.stax.securityToken.InboundSecurityToken getKeyWrappingToken()  
      protected PublicKey getPubKey​(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)  
      PublicKey getPublicKey()  
      Map<String,​Key> getSecretKey()  
      org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()  
      X509Certificate[] getX509Certificates()  
      Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent> getXmlSecEvents()  
      boolean isAsymmetric()  
      boolean isIncludedInMessage()  
      void verify()  
      • Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken

        addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, setElementPath, setKeyWrappingToken, setXMLSecEvent
      • Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken

        getId, getSha1Identifier, getTokenUsages, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
      • Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken

        addTokenUsage, getId, getKeyIdentifier, getSha1Identifier, getTokenUsages, getWrappedTokens
    • Constructor Detail

      • SecurityTokenReferenceImpl

        public SecurityTokenReferenceImpl​(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
                                          Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent> xmlSecEvents,
                                          WSInboundSecurityContext wsInboundSecurityContext,
                                          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
      • getSecretKey

        public Map<String,​Key> getSecretKey()
                                           throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        getSecretKey in interface org.apache.xml.security.stax.securityToken.SecurityToken
        Overrides:
        getSecretKey in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • 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
      • getPublicKey

        public PublicKey getPublicKey()
                               throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        getPublicKey in interface org.apache.xml.security.stax.securityToken.SecurityToken
        Overrides:
        getPublicKey in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • getPubKey

        protected PublicKey getPubKey​(String algorithmURI,
                                      org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage,
                                      String correlationID)
                               throws org.apache.xml.security.exceptions.XMLSecurityException
        Overrides:
        getPubKey in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • getX509Certificates

        public X509Certificate[] getX509Certificates()
                                              throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        getX509Certificates in interface org.apache.xml.security.stax.securityToken.SecurityToken
        Overrides:
        getX509Certificates in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • verify

        public void verify()
                    throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        verify in interface org.apache.xml.security.stax.securityToken.InboundSecurityToken
        Overrides:
        verify in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • getKeyWrappingToken

        public org.apache.xml.security.stax.securityToken.InboundSecurityToken getKeyWrappingToken()
                                                                                            throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        getKeyWrappingToken in interface org.apache.xml.security.stax.securityToken.SecurityToken
        Overrides:
        getKeyWrappingToken in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • isIncludedInMessage

        public boolean isIncludedInMessage()
        Specified by:
        isIncludedInMessage in interface org.apache.xml.security.stax.securityToken.InboundSecurityToken
        Overrides:
        isIncludedInMessage in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
      • getTokenType

        public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
        Specified by:
        getTokenType in interface org.apache.xml.security.stax.securityToken.SecurityToken