Class SecurityTokenReferenceImpl
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.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
ConstructorsConstructorDescriptionSecurityTokenReferenceImpl(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
Modifier and TypeMethodDescriptionprotected KeygetKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) org.apache.xml.security.stax.securityToken.InboundSecurityTokenprotected PublicKeygetPubKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenTypeDeque<org.apache.xml.security.stax.ext.stax.XMLSecEvent>booleanbooleanvoidverify()Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, setElementPath, setKeyWrappingToken, setXMLSecEventMethods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
getId, getSha1Identifier, getTokenUsages, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509CertificatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken
addTokenUsage, getId, getKeyIdentifier, getSha1Identifier, getTokenUsages, getWrappedTokens
-
Constructor Details
-
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 Details
-
getXmlSecEvents
- Specified by:
getXmlSecEventsin interfaceSecurityTokenReference
-
isAsymmetric
public boolean isAsymmetric() throws org.apache.xml.security.exceptions.XMLSecurityException- Specified by:
isAsymmetricin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
isAsymmetricin classorg.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:
getSecretKeyin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getSecretKeyin classorg.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:
getKeyin classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getPublicKey
- Specified by:
getPublicKeyin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getPublicKeyin classorg.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:
getPubKeyin classorg.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:
getX509Certificatesin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getX509Certificatesin classorg.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:
verifyin interfaceorg.apache.xml.security.stax.securityToken.InboundSecurityToken- Overrides:
verifyin classorg.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:
getKeyWrappingTokenin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getKeyWrappingTokenin classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
isIncludedInMessage
public boolean isIncludedInMessage()- Specified by:
isIncludedInMessagein interfaceorg.apache.xml.security.stax.securityToken.InboundSecurityToken- Overrides:
isIncludedInMessagein classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
-
getTokenType
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()- Specified by:
getTokenTypein interfaceorg.apache.xml.security.stax.securityToken.SecurityToken
-