|
||||||||||
| 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
org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
public abstract class AbstractInboundSecurityToken
| Field Summary |
|---|
| Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken |
|---|
keyTable, tokenUsages |
| Constructor Summary | |
|---|---|
AbstractInboundSecurityToken(InboundSecurityContext inboundSecurityContext,
String id,
SecurityTokenConstants.KeyIdentifier keyIdentifier,
boolean includedInMessage)
|
|
| Method Summary | |
|---|---|
void |
addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage)
|
void |
addWrappedToken(InboundSecurityToken inboundSecurityToken)
|
List<QName> |
getElementPath()
Returns the absolute path to the XMLElement |
protected Key |
getKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
|
SecurityTokenConstants.KeyIdentifier |
getKeyIdentifier()
Returns the KeyIdentifier |
InboundSecurityToken |
getKeyWrappingToken()
Returns the key wrapping token |
protected PublicKey |
getPubKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
|
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 |
List<InboundSecurityToken> |
getWrappedTokens()
|
XMLSecEvent |
getXMLSecEvent()
Returns the first XMLEvent for this token |
boolean |
isIncludedInMessage()
Returns if the token is included in the message or not |
void |
setElementPath(List<QName> elementPath)
|
void |
setKeyWrappingToken(InboundSecurityToken keyWrappingToken)
|
void |
setXMLSecEvent(XMLSecEvent xmlSecEvent)
|
void |
verify()
Verifies the key if applicable |
| Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken |
|---|
getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, isAsymmetric, 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, getPublicKey, getSecretKey, getSha1Identifier, getTokenType, getTokenUsages, getX509Certificates, isAsymmetric |
| Constructor Detail |
|---|
public AbstractInboundSecurityToken(InboundSecurityContext inboundSecurityContext,
String id,
SecurityTokenConstants.KeyIdentifier keyIdentifier,
boolean includedInMessage)
| Method Detail |
|---|
public SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
SecurityToken
getKeyIdentifier in interface SecurityTokenpublic List<QName> getElementPath()
InboundSecurityToken
getElementPath in interface InboundSecurityTokenpublic void setElementPath(List<QName> elementPath)
public XMLSecEvent getXMLSecEvent()
InboundSecurityToken
getXMLSecEvent in interface InboundSecurityTokenpublic void setXMLSecEvent(XMLSecEvent xmlSecEvent)
protected Key getKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
throws XMLSecurityException
XMLSecurityException
public final Key getSecretKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
throws XMLSecurityException
InboundSecurityToken
getSecretKey in interface InboundSecurityTokenalgorithmURI - for the requested key
XMLSecurityException - if the key can't be loaded
protected PublicKey getPubKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
throws XMLSecurityException
XMLSecurityException
public final PublicKey getPublicKey(String algorithmURI,
XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID)
throws XMLSecurityException
InboundSecurityToken
getPublicKey in interface InboundSecurityTokenXMLSecurityException - if the key can't be loaded
public void verify()
throws XMLSecurityException
InboundSecurityToken
verify in interface InboundSecurityTokenXMLSecurityException - if the key couldn't be verified or the key isn't validpublic List<InboundSecurityToken> getWrappedTokens()
getWrappedTokens in interface SecurityTokenpublic void addWrappedToken(InboundSecurityToken inboundSecurityToken)
addWrappedToken in interface InboundSecurityToken
public void addTokenUsage(SecurityTokenConstants.TokenUsage tokenUsage)
throws XMLSecurityException
addTokenUsage in interface SecurityTokenaddTokenUsage in class AbstractSecurityTokenXMLSecurityException
public InboundSecurityToken getKeyWrappingToken()
throws XMLSecurityException
SecurityToken
getKeyWrappingToken in interface SecurityTokenXMLSecurityExceptionpublic void setKeyWrappingToken(InboundSecurityToken keyWrappingToken)
public boolean isIncludedInMessage()
InboundSecurityToken
isIncludedInMessage in interface InboundSecurityToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||