public interface SecurityToken
Modifier and Type | Method and Description |
---|---|
void |
addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage) |
String |
getId()
Returns the token id aka wsu:Id
|
SecurityTokenConstants.KeyIdentifier |
getKeyIdentifier()
Returns the KeyIdentifier
|
SecurityToken |
getKeyWrappingToken()
Returns the key wrapping token
|
PublicKey |
getPublicKey()
Returns the public key if one exists and already initialized, null otherwise
|
Map<String,Key> |
getSecretKey()
Returns the secret key's if already initialized, null otherwise
|
String |
getSha1Identifier()
Returns a SHA-1 Identifier that refers to this token
|
SecurityTokenConstants.TokenType |
getTokenType() |
List<SecurityTokenConstants.TokenUsage> |
getTokenUsages() |
List<? extends SecurityToken> |
getWrappedTokens() |
X509Certificate[] |
getX509Certificates()
Returns the certificate chain if one exists for this token type
|
boolean |
isAsymmetric()
Returns the token type
|
String getId()
boolean isAsymmetric() throws XMLSecurityException
XMLSecurityException
Map<String,Key> getSecretKey() throws XMLSecurityException
XMLSecurityException
PublicKey getPublicKey() throws XMLSecurityException
XMLSecurityException
X509Certificate[] getX509Certificates() throws XMLSecurityException
XMLSecurityException
- if the certificates can't be retrievedSecurityToken getKeyWrappingToken() throws XMLSecurityException
XMLSecurityException
List<? extends SecurityToken> getWrappedTokens() throws XMLSecurityException
XMLSecurityException
SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
SecurityTokenConstants.TokenType getTokenType()
List<SecurityTokenConstants.TokenUsage> getTokenUsages()
void addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage) throws XMLSecurityException
XMLSecurityException
String getSha1Identifier()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.