SecurityToken
AbstractInboundSecurityToken
, DsaKeyValueSecurityToken
, ECKeyValueSecurityToken
, KeyNameSecurityToken
, RsaKeyValueSecurityToken
, X509IssuerSerialSecurityToken
, X509SecurityToken
, X509SKISecurityToken
, X509SubjectNameSecurityToken
public interface InboundSecurityToken extends SecurityToken
Modifier and Type | Method | Description |
---|---|---|
void |
addWrappedToken(InboundSecurityToken securityToken) |
|
List<QName> |
getElementPath() |
Returns the absolute path to the XMLElement
|
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
|
XMLSecEvent |
getXMLSecEvent() |
Returns the first XMLEvent for this token
|
boolean |
isIncludedInMessage() |
Returns if the token is included in the message or not
|
void |
verify() |
Verifies the key if applicable
|
addTokenUsage, getId, getKeyIdentifier, getKeyWrappingToken, getPublicKey, getSecretKey, getSha1Identifier, getTokenType, getTokenUsages, getWrappedTokens, getX509Certificates, isAsymmetric
Key getSecretKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
algorithmURI
- for the requested keyalgorithmUsage
- XMLSecurityException
- if the key can't be loadedPublicKey getPublicKey(String algorithmURI, XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws XMLSecurityException
algorithmURI
- algorithmUsage
- XMLSecurityException
- if the key can't be loadedvoid addWrappedToken(InboundSecurityToken securityToken)
void verify() throws XMLSecurityException
XMLSecurityException
- if the key couldn't be verified or the key isn't validList<QName> getElementPath()
XMLSecEvent getXMLSecEvent()
boolean isIncludedInMessage()
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.