org.n52.security.authentication.principals
Class LoginNamePrincipal
java.lang.Object
org.n52.security.authentication.principals.NamePrincipal
org.n52.security.authentication.principals.LoginNamePrincipal
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal, Scope
public class LoginNamePrincipal
- extends NamePrincipal
- implements java.io.Serializable
Class LoginNamePrincipal represents the login name identity of an user.
This class is(shall be) used by login modules which use username/password authentication,
to represent the login name of the user.
- Version:
- $Revision: $
- Author:
- Marko Reiprecht
Created on 16.09.2007
- See Also:
- Serialized Form
Fields inherited from interface org.n52.security.authentication.principals.Scope |
GLOBAL |
Constructor Summary |
LoginNamePrincipal(java.lang.String name)
Constructor creates a new LoginNamePrincipal instance
with the given name. |
LoginNamePrincipal(java.lang.String name,
Scope scope)
Constructor creates a new LoginNamePrincipal instance
with the given name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
toString |
LoginNamePrincipal
public LoginNamePrincipal(java.lang.String name)
throws java.lang.IllegalArgumentException
- Constructor creates a new LoginNamePrincipal instance
with the given name.
It throws an IllegalArgumentException if one of the arguments is null.
- Parameters:
name
- the name != null.
- Throws:
java.lang.IllegalArgumentException
- if one of the arguments is null.
LoginNamePrincipal
public LoginNamePrincipal(java.lang.String name,
Scope scope)
throws java.lang.IllegalArgumentException
- Constructor creates a new LoginNamePrincipal instance
with the given name.
It throws an IllegalArgumentException if one of the arguments is null.
- Parameters:
name
- the name != null.scope
- the scope.
- Throws:
java.lang.IllegalArgumentException
- if one of the arguments is null.
Copyright © 2004-2009 52north.org. All Rights Reserved.