org.n52.security.common.subject
Class UsernameIDPrincipal

java.lang.Object
  extended by org.n52.security.common.subject.NamePrincipal
      extended by org.n52.security.common.subject.UsernameIDPrincipal
All Implemented Interfaces:
Serializable, Principal, Scope

public class UsernameIDPrincipal
extends NamePrincipal

Indicates the unique id of a 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.common.subject.Scope
GLOBAL
 
Constructor Summary
UsernameIDPrincipal(String name)
           
UsernameIDPrincipal(String name, Scope scope)
           
 
Method Summary
 
Methods inherited from class org.n52.security.common.subject.NamePrincipal
equals, getName, getScope, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsernameIDPrincipal

public UsernameIDPrincipal(String name)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException

UsernameIDPrincipal

public UsernameIDPrincipal(String name,
                           Scope scope)
                    throws IllegalArgumentException
Parameters:
name - the name != null.
scope - the scope != null.
Throws:
IllegalArgumentException - if one of the arguments is null.


Copyright © 2004–2014 52north.org. All rights reserved.