org.jboss.security.identity
Interface Identity

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

public interface Identity
extends java.io.Serializable

Identity of an entity (user, process etc)

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

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

Method Detail

getName

java.lang.String getName()
Get the name of the identity

Returns:

getRole

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

Returns:

asGroup

java.security.acl.Group asGroup()
Return a Group only if it has been set

Returns:

asPrincipal

java.security.Principal asPrincipal()
Returns a Principal only if it set

Returns:


Copyright © 2008 JBoss Inc.. All Rights Reserved.