org.n52.security.common.subject
Class LoginNamePrincipal

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

public class LoginNamePrincipal
extends NamePrincipal
implements Serializable

Login name identity of a 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

Field Summary
 
Fields inherited from interface org.n52.security.common.subject.Scope
GLOBAL
 
Constructor Summary
LoginNamePrincipal(String name)
          Constructor creates a new LoginNamePrincipal instance with the given name.
LoginNamePrincipal(String name, Scope scope)
          Constructor creates a new LoginNamePrincipal instance with the given name.
 
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

LoginNamePrincipal

public LoginNamePrincipal(String name)
                   throws 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:
IllegalArgumentException - if one of the arguments is null.

LoginNamePrincipal

public LoginNamePrincipal(String name,
                          Scope scope)
                   throws 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:
IllegalArgumentException - if one of the arguments is null.


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