public class UsernameSecurityTokenImpl extends org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken implements UsernameSecurityToken
| Constructor and Description |
|---|
UsernameSecurityTokenImpl(WSSConstants.UsernameTokenPasswordType usernameTokenPasswordType,
String username,
String password,
String createdTime,
byte[] nonce,
byte[] salt,
Long iteration,
WSInboundSecurityContext wsInboundSecurityContext,
String id,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateDerivedKey()
This method generates a derived key as defined in WSS Username
Token Profile.
|
protected byte[] |
generateDerivedKey(WSInboundSecurityContext wsInboundSecurityContext)
This method generates a derived key as defined in WSS Username
Token Profile.
|
String |
getCreatedTime() |
Long |
getIteration() |
protected Key |
getKey(String algorithmURI,
org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID) |
byte[] |
getNonce() |
String |
getPassword() |
Principal |
getPrincipal() |
byte[] |
getSalt() |
Subject |
getSubject() |
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType |
getTokenType() |
String |
getUsername() |
WSSConstants.UsernameTokenPasswordType |
getUsernameTokenPasswordType() |
boolean |
isAsymmetric() |
void |
setSubject(Subject subject) |
addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getKeyWrappingToken, getPubKey, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent, verifygetId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificatespublic UsernameSecurityTokenImpl(WSSConstants.UsernameTokenPasswordType usernameTokenPasswordType, String username, String password, String createdTime, byte[] nonce, byte[] salt, Long iteration, WSInboundSecurityContext wsInboundSecurityContext, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier)
public boolean isAsymmetric()
throws org.apache.xml.security.exceptions.XMLSecurityException
isAsymmetric in interface org.apache.xml.security.stax.securityToken.SecurityTokenisAsymmetric in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityTokenorg.apache.xml.security.exceptions.XMLSecurityExceptionprotected Key getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws org.apache.xml.security.exceptions.XMLSecurityException
getKey in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityTokenorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
getTokenType in interface org.apache.xml.security.stax.securityToken.SecurityTokenpublic byte[] generateDerivedKey()
throws WSSecurityException
generateDerivedKey in interface UsernameSecurityTokenWSSecurityExceptionprotected byte[] generateDerivedKey(WSInboundSecurityContext wsInboundSecurityContext) throws WSSecurityException
WSSecurityExceptionpublic Principal getPrincipal() throws WSSecurityException
getPrincipal in interface SubjectAndPrincipalSecurityTokenWSSecurityExceptionpublic WSSConstants.UsernameTokenPasswordType getUsernameTokenPasswordType()
getUsernameTokenPasswordType in interface UsernameSecurityTokenpublic String getCreatedTime()
getCreatedTime in interface UsernameSecurityTokenpublic String getPassword()
getPassword in interface UsernameSecurityTokenpublic String getUsername()
getUsername in interface UsernameSecurityTokenpublic byte[] getNonce()
getNonce in interface UsernameSecurityTokenpublic byte[] getSalt()
getSalt in interface UsernameSecurityTokenpublic Long getIteration()
getIteration in interface UsernameSecurityTokenpublic void setSubject(Subject subject)
public Subject getSubject() throws WSSecurityException
getSubject in interface SubjectAndPrincipalSecurityTokenWSSecurityExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.