public final class UsernameTokenSecurityStrategy extends Object implements SecurityStrategy
Constructor and Description |
---|
UsernameTokenSecurityStrategy(String username,
String password,
PasswordType passwordType) |
UsernameTokenSecurityStrategy(String username,
String password,
PasswordType passwordType,
boolean addNonce,
boolean addCreated) |
Modifier and Type | Method and Description |
---|---|
void |
accept(SecurityStrategyVisitor visitor)
Dispatches in a reflective way to the method with the specific
SecurityStrategy type as argument. |
String |
getPassword() |
PasswordType |
getPasswordType() |
String |
getUsername() |
boolean |
isAddCreated() |
boolean |
isAddNonce() |
public UsernameTokenSecurityStrategy(String username, String password, PasswordType passwordType, boolean addNonce, boolean addCreated)
public UsernameTokenSecurityStrategy(String username, String password, PasswordType passwordType)
public String getUsername()
public String getPassword()
public PasswordType getPasswordType()
public boolean isAddNonce()
public boolean isAddCreated()
public void accept(SecurityStrategyVisitor visitor)
SecurityStrategy
SecurityStrategy
type as argument.accept
in interface SecurityStrategy
visitor
- the accepted visitor.Copyright © 2018. All rights reserved.