Interface IPublicCredential
-
- All Superinterfaces:
java.security.Principal
public interface IPublicCredential extends java.security.PrincipalThis interface describes public credentials added by the Equinox login modules.This interface should not be extended by clients.
- See Also:
Subject.getPublicCredentials()- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.security.PrincipalgetPrimaryRole()Returns user's primary role, if set.java.lang.StringgetProviderID()ID of the provider of this public credential.java.security.Principal[]getRoles()Returns user's roles.
-
-
-
Method Detail
-
getPrimaryRole
java.security.Principal getPrimaryRole()
Returns user's primary role, if set. Might returnnullif primary role is not set.- Returns:
- user's primary role. Returns
nullif there is no primary role.
-
getRoles
java.security.Principal[] getRoles()
Returns user's roles. Might returnnullif there are no roles.- Returns:
- user's roles. Returns
nullif there are no roles.
-
getProviderID
java.lang.String getProviderID()
ID of the provider of this public credential.- Returns:
- provider ID
-
-