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, verify
getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
public 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.SecurityToken
isAsymmetric
in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
org.apache.xml.security.exceptions.XMLSecurityException
protected 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.AbstractInboundSecurityToken
org.apache.xml.security.exceptions.XMLSecurityException
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
getTokenType
in interface org.apache.xml.security.stax.securityToken.SecurityToken
public byte[] generateDerivedKey() throws WSSecurityException
generateDerivedKey
in interface UsernameSecurityToken
WSSecurityException
protected byte[] generateDerivedKey(WSInboundSecurityContext wsInboundSecurityContext) throws WSSecurityException
WSSecurityException
public Principal getPrincipal() throws WSSecurityException
getPrincipal
in interface SubjectAndPrincipalSecurityToken
WSSecurityException
public WSSConstants.UsernameTokenPasswordType getUsernameTokenPasswordType()
getUsernameTokenPasswordType
in interface UsernameSecurityToken
public String getCreatedTime()
getCreatedTime
in interface UsernameSecurityToken
public String getPassword()
getPassword
in interface UsernameSecurityToken
public String getUsername()
getUsername
in interface UsernameSecurityToken
public byte[] getNonce()
getNonce
in interface UsernameSecurityToken
public byte[] getSalt()
getSalt
in interface UsernameSecurityToken
public Long getIteration()
getIteration
in interface UsernameSecurityToken
public void setSubject(Subject subject)
public Subject getSubject() throws WSSecurityException
getSubject
in interface SubjectAndPrincipalSecurityToken
WSSecurityException
Copyright © 2021 JBoss by Red Hat. All rights reserved.