public class UserInformationPrincipal
extends java.lang.Object
implements java.security.Principal
| Constructor and Description |
|---|
UserInformationPrincipal(UserInformation userInformation)
Create a new principal object
|
| Modifier and Type | Method and Description |
|---|---|
static UserInformationPrincipal |
create(UserInformation userInformation)
Create an new principal object from a user information
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
hashCode() |
java.lang.String |
toString() |
public UserInformationPrincipal(UserInformation userInformation)
For creating a new object with easier null handling see
create(UserInformation)
userInformation - the user information that is the source of the information.
This parameter must not be nulljava.lang.NullPointerException - in the case the userInformation parameter is
nullcreate(UserInformation)public static UserInformationPrincipal create(UserInformation userInformation)
userInformation - the user information or null if none is availableUserInformationPrincipal instance of
null if the
parameter userInformation was nullpublic java.lang.String getName()
getName in interface java.security.Principalpublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in class java.lang.Object
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0