Constructor that takes in a single 'primary' principal of the account, its corresponding hashed credentials,
the salt used to hash the credentials, and the name of the realm to associate with the principals.
<p/>
This is a convenience constructor and will construct a {@link PrincipalCollection PrincipalCollection} based
on the <code>principal</code> and <code>realmName</code> argument.
@param principal the 'primary' principal associated with the specified realm.
@param hashedCredentials the hashed credentials that verify the given principal.
@param credentialsSalt the salt used when hashing the given hashedCredentials
@param realmName the realm from where the principal and credentials were acquired.
@see hunt.shiro.authc.credential.HashedCredentialsMatcher HashedCredentialsMatcher
Constructor that takes in a single 'primary' principal of the account, its corresponding hashed credentials, the salt used to hash the credentials, and the name of the realm to associate with the principals. <p/> This is a convenience constructor and will construct a {@link PrincipalCollection PrincipalCollection} based on the <code>principal</code> and <code>realmName</code> argument.
@param principal the 'primary' principal associated with the specified realm. @param hashedCredentials the hashed credentials that verify the given principal. @param credentialsSalt the salt used when hashing the given hashedCredentials @param realmName the realm from where the principal and credentials were acquired. @see hunt.shiro.authc.credential.HashedCredentialsMatcher HashedCredentialsMatcher