|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
public abstract class AbstractSecurityToken
| Field Summary | |
|---|---|
protected Map<String,Key> |
keyTable
|
protected List<SecurityTokenConstants.TokenUsage> |
tokenUsages
|
| Constructor Summary | |
|---|---|
AbstractSecurityToken(String id)
|
|
| Method Summary | |
|---|---|
void |
addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage)
|
String |
getId()
Returns the token id aka wsu:Id |
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 |
List<SecurityTokenConstants.TokenUsage> |
getTokenUsages()
|
X509Certificate[] |
getX509Certificates()
Returns the certificate chain if one exists for this token type |
boolean |
isAsymmetric()
Returns the token type |
protected void |
setAsymmetric(boolean asymmetric)
|
void |
setPublicKey(PublicKey publicKey)
|
void |
setSecretKey(String algorithmURI,
Key key)
|
void |
setSha1Identifier(String sha1Identifier)
|
void |
setX509Certificates(X509Certificate[] x509Certificates)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken |
|---|
getKeyIdentifier, getKeyWrappingToken, getTokenType, getWrappedTokens |
| Field Detail |
|---|
protected final Map<String,Key> keyTable
protected final List<SecurityTokenConstants.TokenUsage> tokenUsages
| Constructor Detail |
|---|
public AbstractSecurityToken(String id)
| Method Detail |
|---|
public String getId()
SecurityToken
getId in interface SecurityTokenprotected void setAsymmetric(boolean asymmetric)
public boolean isAsymmetric()
throws XMLSecurityException
SecurityToken
isAsymmetric in interface SecurityTokenXMLSecurityException
public void setSecretKey(String algorithmURI,
Key key)
public Map<String,Key> getSecretKey()
throws XMLSecurityException
SecurityToken
getSecretKey in interface SecurityTokenXMLSecurityExceptionpublic void setPublicKey(PublicKey publicKey)
public PublicKey getPublicKey()
throws XMLSecurityException
SecurityToken
getPublicKey in interface SecurityTokenXMLSecurityExceptionpublic void setX509Certificates(X509Certificate[] x509Certificates)
public X509Certificate[] getX509Certificates()
throws XMLSecurityException
SecurityToken
getX509Certificates in interface SecurityTokenXMLSecurityException - if the certificates can't be retrieved
public void addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage)
throws XMLSecurityException
addTokenUsage in interface SecurityTokenXMLSecurityExceptionpublic List<SecurityTokenConstants.TokenUsage> getTokenUsages()
getTokenUsages in interface SecurityTokenpublic String getSha1Identifier()
SecurityToken
getSha1Identifier in interface SecurityTokenpublic void setSha1Identifier(String sha1Identifier)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||