Eclipse Platform
Release 3.4

org.eclipse.equinox.security.auth.credentials
Interface IPublicCredential

All Superinterfaces:
Principal

public interface IPublicCredential
extends Principal

This 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
 Principal getPrimaryRole()
          Returns user's primary role, if set.
 String getProviderID()
          ID of the provider of this public credential.
 Principal[] getRoles()
          Returns user's roles.
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

getPrimaryRole

public Principal getPrimaryRole()
Returns user's primary role, if set. Might return null if primary role is not set.

Returns:
user's primary role. Returns null if there is no primary role.

getRoles

public Principal[] getRoles()
Returns user's roles. Might return null if there are no roles.

Returns:
user's roles. Returns null if there are no roles.

getProviderID

public String getProviderID()
ID of the provider of this public credential.

Returns:
provider ID

Eclipse Platform
Release 3.4

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.