org.n52.security.authentication.principals
Class UsernameIDPrincipal

java.lang.Object
  extended by org.n52.security.authentication.principals.NamePrincipal
      extended by org.n52.security.authentication.principals.UsernameIDPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal, Scope

public class UsernameIDPrincipal
extends NamePrincipal

Class UsernameIDPrincipal indicates the unique id of an user. todo: better rename to UserIdPrincipal

Version:
$Revision: $
Author:
Marko Reiprecht Created on 18.07.2008
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.n52.security.authentication.principals.Scope
GLOBAL
 
Constructor Summary
UsernameIDPrincipal(java.lang.String name)
          Constructor creates a new instance.
UsernameIDPrincipal(java.lang.String name, Scope scope)
          Constructor creates a new instance.
 
Method Summary
 
Methods inherited from class org.n52.security.authentication.principals.NamePrincipal
equals, getName, getScope, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

UsernameIDPrincipal

public UsernameIDPrincipal(java.lang.String name)
                    throws java.lang.IllegalArgumentException
Constructor creates a new instance.

Parameters:
name - the name.
Throws:
java.lang.IllegalArgumentException - if error occurs.

UsernameIDPrincipal

public UsernameIDPrincipal(java.lang.String name,
                           Scope scope)
                    throws java.lang.IllegalArgumentException
Constructor creates a new instance.

Parameters:
name - the name != null.
scope - the scope != null.
Throws:
java.lang.IllegalArgumentException - if one of the arguments is null.


Copyright © 2004-2009 52north.org. All Rights Reserved.