org.jboss.security.identity
Interface Identity

All Superinterfaces:
Serializable
All Known Subinterfaces:
CertificateIdentity, CredentialIdentity<T>, KerberosIdentity<T>, OpenIdIdentity<T>, SAMLIdentity<T>, WSTrustIdentity<T>

public interface Identity
extends Serializable

Identity of an entity (user, process etc)

Since:
Nov 16, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Method Summary
 Group asGroup()
          Return a Group only if it has been set
 Principal asPrincipal()
          Returns a Principal only if it set
 String getName()
          Get the name of the identity
 Role getRole()
          Get the Role (Role or RoleGroup)
 

Method Detail

getName

String getName()
Get the name of the identity

Returns:

getRole

Role getRole()
Get the Role (Role or RoleGroup)

Returns:

asGroup

Group asGroup()
Return a Group only if it has been set

Returns:

asPrincipal

Principal asPrincipal()
Returns a Principal only if it set

Returns:


Copyright © 2009 JBoss Inc.. All Rights Reserved.