Class DsaKeyValueSecurityToken
- java.lang.Object
-
- org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
-
- org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
-
- org.apache.xml.security.stax.impl.securityToken.DsaKeyValueSecurityToken
-
- All Implemented Interfaces:
InboundSecurityToken,SecurityToken
public class DsaKeyValueSecurityToken extends AbstractInboundSecurityToken
-
-
Field Summary
Fields Modifier and Type Field Description private DSAKeyValueTypedsaKeyValueType-
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
-
-
Constructor Summary
Constructors Constructor Description DsaKeyValueSecurityToken(DSAKeyValueType dsaKeyValueType, InboundSecurityContext inboundSecurityContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.security.PublicKeybuildPublicKey(DSAKeyValueType dsaKeyValueType)java.security.PublicKeygetPublicKey()Returns the public key if one exists and already initialized, null otherwiseSecurityTokenConstants.TokenTypegetTokenType()booleanisAsymmetric()Returns the token type-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
addTokenUsage, addWrappedToken, getElementPath, getKey, getKeyIdentifier, getKeyWrappingToken, getPubKey, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent, verify
-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
getId, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
-
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
getId, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates
-
-
-
-
Field Detail
-
dsaKeyValueType
private DSAKeyValueType dsaKeyValueType
-
-
Constructor Detail
-
DsaKeyValueSecurityToken
public DsaKeyValueSecurityToken(DSAKeyValueType dsaKeyValueType, InboundSecurityContext inboundSecurityContext)
-
-
Method Detail
-
buildPublicKey
private java.security.PublicKey buildPublicKey(DSAKeyValueType dsaKeyValueType) throws java.security.spec.InvalidKeySpecException, java.security.NoSuchAlgorithmException
- Throws:
java.security.spec.InvalidKeySpecExceptionjava.security.NoSuchAlgorithmException
-
getPublicKey
public java.security.PublicKey getPublicKey() throws XMLSecurityExceptionDescription copied from interface:SecurityTokenReturns the public key if one exists and already initialized, null otherwise- Specified by:
getPublicKeyin interfaceSecurityToken- Overrides:
getPublicKeyin classAbstractSecurityToken- Returns:
- the public key
- Throws:
XMLSecurityException
-
isAsymmetric
public boolean isAsymmetric()
Description copied from interface:SecurityTokenReturns the token type- Specified by:
isAsymmetricin interfaceSecurityToken- Overrides:
isAsymmetricin classAbstractSecurityToken- Returns:
- true if asymmetric token, false if symmetric token
-
getTokenType
public SecurityTokenConstants.TokenType getTokenType()
-
-