Example usage for Java org.apache.shiro.authc SimpleAccount fields, constructors, methods, implement or subclass
The text is from its open source code.
SimpleAccount(Object principal, Object hashedCredentials, ByteSource credentialsSalt, String realmName) Constructs a SimpleAccount instance for the specified realm with the given principals, hashedCredentials and credentials salt used when hashing the credentials. | |
SimpleAccount(PrincipalCollection principals, Object credentials, Set Constructs a SimpleAccount instance from the given principals and credentials, with the the assigned roles and permissions. | |
SimpleAccount(Object principal, Object credentials, String realmName) Constructs a SimpleAccount instance for the specified realm with the given principals and credentials. | |
SimpleAccount(Collection principals, Object credentials, String realmName) Constructs a SimpleAccount instance for the specified realm with the given principals and credentials. | |
SimpleAccount(PrincipalCollection principals, Object hashedCredentials, ByteSource credentialsSalt) Constructs a SimpleAccount instance for the specified principals and credentials. | |
SimpleAccount(PrincipalCollection principals, Object credentials, Set Constructs a SimpleAccount instance for the specified principals and credentials, with the assigned roles. | |
SimpleAccount() Default no-argument constructor. | |
SimpleAccount(Object principal, Object credentials, String realmName, Set Constructs a SimpleAccount instance for the specified realm with the given principal and credentials, with the the assigned roles and permissions. | |
SimpleAccount(Collection principals, Object credentials, String realmName, Set Constructs a SimpleAccount instance for the specified realm with the given principals and credentials, with the the assigned roles and permissions. | |
SimpleAccount(PrincipalCollection principals, Object credentials) Constructs a SimpleAccount instance for the specified principals and credentials. |
void | addObjectPermission(Permission permission) Assigns an object-based permission directly to this Account (not any of its realms). |
void | addRole(String role) Adds a role to this Account's set of assigned roles. |
void | addRole(Collection Adds one or more roles to this Account's set of assigned roles. |
void | addStringPermission(String permission) Assigns a String-based permission directly to this Account (not to any of its realms). |
void | addStringPermissions(Collection Assigns one or more string-based permissions directly to this Account (not to any of its realms). |
Object | getCredentials() Simply returns this.authcInfo.getCredentials . |
ByteSource | getCredentialsSalt() Returns the salt used to hash this Account's credentials (eg for password hashing), or null if no salt was used or credentials were not hashed at all. |
Collection | getObjectPermissions() Returns all object-based permissions assigned directly to this Account (not any of its realms). |
PrincipalCollection | getPrincipals() Returns the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account. |
Collection | getRoles() Returns this.authzInfo.getRoles(); |
boolean | isCredentialsExpired() Returns whether or not the Account's credentials are expired. |
boolean | isLocked() Returns true if this Account is locked and thus cannot be used to login, false otherwise. |
void | setCredentials(Object credentials) Sets this Account's credentials that verify one or more of the Account's #getPrincipals() principals , such as a password or private key. |
void | setCredentialsExpired(boolean credentialsExpired) Sets whether or not the Account's credentials are expired. |
void | setCredentialsSalt(ByteSource salt) Sets the salt to use to hash this Account's credentials (eg for password hashing), or null if no salt is used or credentials are not hashed at all. |
void | setLocked(boolean locked) Sets whether or not the account is locked and can be used to login. |
void | setPrincipals(PrincipalCollection principals) Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account. |