org.n52.security.authentication.principals
Class UsernameIDPrincipal
java.lang.Object
org.n52.security.authentication.principals.NamePrincipal
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
Fields inherited from interface org.n52.security.authentication.principals.Scope |
GLOBAL |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
toString |
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.