Package com.sun.identity.wss.security
Class UserNameTokenSpec
- java.lang.Object
-
- com.sun.identity.wss.security.UserNameTokenSpec
-
- All Implemented Interfaces:
SecurityTokenSpec
public class UserNameTokenSpec extends Object implements SecurityTokenSpec
This class defines the specification for generating the Username security tokens. It implementsSecurityTokenSpecinterface.
-
-
Constructor Summary
Constructors Constructor Description UserNameTokenSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()Returns the password.StringgetPasswordType()Returns the password type.StringgetUserName()Returns the usernamebooleanisCreateNonce()Checks if the nonce should be used.booleanisCreateTimeStamp()Checks if the creation time stamp should be used.voidsetCreateTimeStamp(boolean isTimeStamp)Sets if the create time stamp should be used.voidsetNonce(boolean isNonce)Sets if the nonce should be used.voidsetPassword(String password)Sets the user password to be used in username token.voidsetPasswordType(String passwordType)Sets the password type.voidsetUserName(String username)Sets the username
-
-
-
Method Detail
-
getPasswordType
public String getPasswordType()
Returns the password type.- Returns:
- the password type.
-
setPasswordType
public void setPasswordType(String passwordType)
Sets the password type.- Parameters:
passwordType- the password type.
-
setNonce
public void setNonce(boolean isNonce)
Sets if the nonce should be used.- Parameters:
isNonce- true if the nonce should be used.
-
isCreateNonce
public boolean isCreateNonce()
Checks if the nonce should be used.- Returns:
- true if the nonce should be used.
-
isCreateTimeStamp
public boolean isCreateTimeStamp()
Checks if the creation time stamp should be used.- Returns:
- true if the create time stamp should be used.
-
setCreateTimeStamp
public void setCreateTimeStamp(boolean isTimeStamp)
Sets if the create time stamp should be used.- Parameters:
isTimeStamp- true if the time stamp should be used.
-
setUserName
public void setUserName(String username)
Sets the username- Parameters:
username- the username to be used in username token.
-
getUserName
public String getUserName()
Returns the username- Returns:
- the user name.
-
setPassword
public void setPassword(String password)
Sets the user password to be used in username token.- Parameters:
password- the password to be used in username token.
-
getPassword
public String getPassword()
Returns the password.- Returns:
- the password.
-
-