public abstract class AbstractInboundSecurityToken extends AbstractSecurityToken implements InboundSecurityToken
keyTable, tokenUsages| Constructor and Description |
|---|
AbstractInboundSecurityToken(InboundSecurityContext inboundSecurityContext,
String id,
SecurityTokenConstants.KeyIdentifier keyIdentifier,
boolean includedInMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage) |
void |
addWrappedToken(InboundSecurityToken inboundSecurityToken) |
List<QName> |
getElementPath()
Returns the absolute path to the XMLElement
|
protected Key |
getKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID) |
SecurityTokenConstants.KeyIdentifier |
getKeyIdentifier()
Returns the KeyIdentifier
|
InboundSecurityToken |
getKeyWrappingToken()
Returns the key wrapping token
|
protected PublicKey |
getPubKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID) |
PublicKey |
getPublicKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
Returns the public key if one exist for this token type
|
Key |
getSecretKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
Returns the secret key
|
List<InboundSecurityToken> |
getWrappedTokens() |
XMLSecEvent |
getXMLSecEvent()
Returns the first XMLEvent for this token
|
boolean |
isIncludedInMessage()
Returns if the token is included in the message or not
|
void |
setElementPath(List<QName> elementPath) |
void |
setKeyWrappingToken(InboundSecurityToken keyWrappingToken) |
void |
setXMLSecEvent(XMLSecEvent xmlSecEvent) |
void |
verify()
Verifies the key if applicable
|
getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, isAsymmetric, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificatesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getPublicKey, getSecretKey, getSha1Identifier, getTokenType, getTokenUsages, getX509Certificates, isAsymmetricpublic AbstractInboundSecurityToken(InboundSecurityContext inboundSecurityContext, String id, SecurityTokenConstants.KeyIdentifier keyIdentifier, boolean includedInMessage)
public SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
SecurityTokengetKeyIdentifier in interface SecurityTokenpublic List<QName> getElementPath()
InboundSecurityTokengetElementPath in interface InboundSecurityTokenpublic XMLSecEvent getXMLSecEvent()
InboundSecurityTokengetXMLSecEvent in interface InboundSecurityTokenpublic void setXMLSecEvent(XMLSecEvent xmlSecEvent)
protected Key getKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
XMLSecurityExceptionpublic final Key getSecretKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
InboundSecurityTokengetSecretKey in interface InboundSecurityTokenalgorithmURI - for the requested keyXMLSecurityException - if the key can't be loadedprotected PublicKey getPubKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
XMLSecurityExceptionpublic final PublicKey getPublicKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
InboundSecurityTokengetPublicKey in interface InboundSecurityTokenXMLSecurityException - if the key can't be loadedpublic void verify()
throws XMLSecurityException
InboundSecurityTokenverify in interface InboundSecurityTokenXMLSecurityException - if the key couldn't be verified or the key isn't validpublic List<InboundSecurityToken> getWrappedTokens()
getWrappedTokens in interface SecurityTokenpublic void addWrappedToken(InboundSecurityToken inboundSecurityToken)
addWrappedToken in interface InboundSecurityTokenpublic void addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage) throws XMLSecurityException
addTokenUsage in interface SecurityTokenaddTokenUsage in class AbstractSecurityTokenXMLSecurityExceptionpublic InboundSecurityToken getKeyWrappingToken() throws XMLSecurityException
SecurityTokengetKeyWrappingToken in interface SecurityTokenXMLSecurityExceptionpublic void setKeyWrappingToken(InboundSecurityToken keyWrappingToken)
public boolean isIncludedInMessage()
InboundSecurityTokenisIncludedInMessage in interface InboundSecurityTokenCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.