public class BaseAuthenticationToken extends Object implements org.apache.shiro.authc.AuthenticationToken
Modifier and Type | Field and Description |
---|---|
static String |
ALL_REALM |
protected Object |
credentials
Represents the credentials submitted by the user during the authentication process that
verifies the submitted Principal account identity.
|
static String |
DEFAULT_REALM |
protected Object |
principal
Represents the account identity submitted during the authentication process.
|
protected String |
realm
Represents the realm within which the principal and the credentials have meaning.
|
Constructor and Description |
---|
BaseAuthenticationToken(Object principal,
String realm,
Object credentials) |
Modifier and Type | Method and Description |
---|---|
Object |
getCredentials() |
String |
getCredentialsAsXMLString()
Returns the credentials as an XML string suitable for injecting into a STS request.
|
Object |
getPrincipal() |
String |
getRealm() |
boolean |
isUseWssSts() |
protected void |
setCredentials(Object o) |
void |
setUseWssSts(boolean useWssSts) |
public static final String DEFAULT_REALM
public static final String ALL_REALM
protected Object principal
Most application authentications are username/password based and have this object represent a username. However, this can also represent the DN from an X509 certificate, or any other unique identifier.
Ultimately, the object is application specific and can represent any account identity (user id, X.509 certificate, etc).
protected Object credentials
Most application authentications are username/password based and have this object represent a submitted password.
Ultimately, the credentials Object is application specific and can represent any credential mechanism.
protected String realm
public Object getPrincipal()
getPrincipal
in interface org.apache.shiro.authc.AuthenticationToken
public Object getCredentials()
getCredentials
in interface org.apache.shiro.authc.AuthenticationToken
protected void setCredentials(Object o)
public boolean isUseWssSts()
public void setUseWssSts(boolean useWssSts)
public String getRealm()
public String getCredentialsAsXMLString()
This work is licensed under a Creative Commons Attribution 4.0 International License.