org.n52.security.authentication
Class LicensePrincipal

java.lang.Object
  extended by org.n52.security.authentication.LicensePrincipal
All Implemented Interfaces:
java.security.Principal

public class LicensePrincipal
extends java.lang.Object
implements java.security.Principal

Class LicensePrincipal is used to transport a license reference within the subject.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 05.03.2008

Constructor Summary
LicensePrincipal(LicenseReference licref)
          Constructor creates a new instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Method checks equality.
 LicenseReference getLicenseReference()
          Method gets the transported license reference.
 java.lang.String getName()
          Returns the name of this principal.
 int hashCode()
          creates a hashCode.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

LicensePrincipal

public LicensePrincipal(LicenseReference licref)
Constructor creates a new instance.

Parameters:
licref - the licref.
Method Detail

getLicenseReference

public LicenseReference getLicenseReference()
Method gets the transported license reference.

Returns:
LicenseReference.

getName

public java.lang.String getName()
Returns the name of this principal.

Specified by:
getName in interface java.security.Principal
Returns:
the name of this principal.

equals

public boolean equals(java.lang.Object o)
Method checks equality.

Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object
Parameters:
o - the o.
Returns:
boolean.

hashCode

public int hashCode()
creates a hashCode.

Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object
Returns:
int.


Copyright © 2004-2009 52north.org. All Rights Reserved.