|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InboundSecurityToken
This class represents the different token types which can occur in WS-Security
Sometimes it isn't known (@see EncryptedKeyInputProcessor) which kind of Token(Asymmetric, Symmetric) we have at creation time. So we use a generic interface for both types.
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken |
|---|
addTokenUsage, getId, getKeyIdentifier, getKeyWrappingToken, getPublicKey, getSecretKey, getSha1Identifier, getTokenType, getTokenUsages, getWrappedTokens, getX509Certificates, isAsymmetric |
| Method Detail |
|---|
Key getSecretKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
throws XMLSecurityException
algorithmURI - for the requested keyalgorithmUsage -
XMLSecurityException - if the key can't be loaded
PublicKey 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||