Class ECKeyValueSecurityToken
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.ECKeyValueSecurityToken
- All Implemented Interfaces:
InboundSecurityToken, SecurityToken
-
Field Summary
FieldsFields inherited from class AbstractSecurityToken
keyTable, tokenUsages -
Constructor Summary
ConstructorsConstructorDescriptionECKeyValueSecurityToken(ECKeyValueType ecKeyValueType, InboundSecurityContext inboundSecurityContext) -
Method Summary
Modifier and TypeMethodDescriptionprivate PublicKeybuildPublicKey(ECKeyValueType ecKeyValueType) Returns the public key if one exists and already initialized, null otherwisebooleanReturns the token typeMethods inherited from class AbstractInboundSecurityToken
addTokenUsage, addWrappedToken, getElementPath, getKey, getKeyIdentifier, getKeyWrappingToken, getPubKey, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent, verifyMethods inherited from class AbstractSecurityToken
getId, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509CertificatesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SecurityToken
getId, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates
-
Field Details
-
ecKeyValueType
-
-
Constructor Details
-
ECKeyValueSecurityToken
public ECKeyValueSecurityToken(ECKeyValueType ecKeyValueType, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException - Throws:
XMLSecurityException
-
-
Method Details
-
buildPublicKey
private PublicKey buildPublicKey(ECKeyValueType ecKeyValueType) throws InvalidKeySpecException, NoSuchAlgorithmException, XMLSecurityException -
getPublicKey
Description 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
-