org.norther.tammi.core.security
Interface IdentifiedPrincipal

All Superinterfaces:
Principal
All Known Subinterfaces:
AuthenticatedPrincipal
All Known Implementing Classes:
ProtectedPrincipal, PublicIdentity, RemoteIdentity

public interface IdentifiedPrincipal
extends Principal

An interface to an identified user. The identification may have been provided by the user itself of by some remote service but has not been explicitly authenticated.

Version:
$Id: IdentifiedPrincipal.java,v 1.6 2010-03-31 09:09:21 cvsimp Exp $
Author:
Ilkka Priha

Field Summary
static String IDENTIFIED_PRINCIPAL
          The string identifier.
 
Method Summary
 Object getGroupId()
          Gets the group id of the principal.
 Object getUserId()
          Gets the user id of the principal.
 String toIdentity()
          Returns the identity of the principal.
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Field Detail

IDENTIFIED_PRINCIPAL

static final String IDENTIFIED_PRINCIPAL
The string identifier.

Method Detail

getUserId

Object getUserId()
Gets the user id of the principal.

Returns:
the user id.

getGroupId

Object getGroupId()
Gets the group id of the principal.

Returns:
the group id.

toIdentity

String toIdentity()
Returns the identity of the principal.

Returns:
the identity.


Copyright © 2004 The Norther Organization. All rights reserved.