asit.moa.client.id
Class MOAIDPrincipal

java.lang.Object
  extended byorg.apache.catalina.realm.GenericPrincipal
      extended byasit.moa.client.id.MOAIDPrincipal
All Implemented Interfaces:
MOAIDPrincipalInterface, Principal

public class MOAIDPrincipal
extends org.apache.catalina.realm.GenericPrincipal
implements MOAIDPrincipalInterface

Author:
Arne Tauber, modified by Thomas Knall

Field Summary
 
Fields inherited from class org.apache.catalina.realm.GenericPrincipal
name, password, realm, roles
 
Constructor Summary
MOAIDPrincipal()
          Creates an empty MOAIdPrincipal.
MOAIDPrincipal(org.apache.catalina.Realm realm, String name, String password)
           
MOAIDPrincipal(org.apache.catalina.Realm realm, String name, String password, List roles)
           
 
Method Summary
 void addExtendedSamlAttibute(ExtendedSAMLAttribute attr)
          Deprecated. Use addExtendedSamlAttribute(ExtendedSAMLAttribute) instead
 void addExtendedSamlAttribute(ExtendedSAMLAttribute attr)
           
static String buildExtSamlId(String name, String nameSpace)
           
 String getAuthority()
           
 String getBaseId()
          Returns the user's base id (or if MOA-ID is not adequately configured).
 String getBkuURL()
          Returns the URL of the underlying type of citizen card.
 String getDateOfBirth()
           
 Object getExtendedSamlAttribute(String name, String nameSpace)
           
 Hashtable getExtendedSamlAttributes()
           
 String getFamilyName()
           
 String getGivenName()
           
 Date getLoginTime()
           
 String getNameIdentifier()
           
 String getNameQualifier()
           
 String getPseudonym()
           
 Element getSamlAssertion()
          Returns the SAML-Assertion.
 String getStatusCode()
           
 List getSubjectConfirmationAssertions()
           
 void setAuthority(String authority)
           
 void setBaseId(String baseId)
          Sets the user's base id (provided that MOA-ID is adequately configured.
 void setBkuURL(String bkuURL)
          Sets the URL of the underlying type of citizen card.
 void setDateOfBirth(String dateOfBirth)
           
 void setExtendedSamlAttributes(Hashtable extendedSamlAttributes)
           
 void setFamilyName(String familyName)
           
 void setGivenName(String givenName)
           
 void setLoginTime(Date loginTime)
           
 void setNameIdentifier(String nameIdentifier)
           
 void setNameQualifier(String nameQualifier)
           
 void setPassword(String password)
           
 void setPseudonym(String pseudonym)
           
 void setRealm(org.apache.catalina.Realm realm)
           
 void setRoles(String[] roles)
           
 void setSamlAssertion(Element samlAssertion)
          Sets the SAML-Assertion.
 void setStatusCode(String statusCode)
           
 void setSubjectConfirmationAssertions(List subjectConfirmationAssertions)
           
 String toString()
          Gets a human readable String of this class.
 
Methods inherited from class org.apache.catalina.realm.GenericPrincipal
getName, getPassword, getRealm, getRoles, hasRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode
 

Constructor Detail

MOAIDPrincipal

public MOAIDPrincipal(org.apache.catalina.Realm realm,
                      String name,
                      String password,
                      List roles)

MOAIDPrincipal

public MOAIDPrincipal(org.apache.catalina.Realm realm,
                      String name,
                      String password)

MOAIDPrincipal

public MOAIDPrincipal()
Creates an empty MOAIdPrincipal.

Method Detail

getBkuURL

public String getBkuURL()
Returns the URL of the underlying type of citizen card.

Returns:
The underlying type of citizen card.

setBkuURL

public void setBkuURL(String bkuURL)
Sets the URL of the underlying type of citizen card.

Parameters:
bkuURL - The URL of the underlying type of citizen card.

getBaseId

public String getBaseId()
Returns the user's base id (or if MOA-ID is not adequately configured).

Note: Set the attribute of within the MOA-ID configuration file.

Returns:
The user's base id or

setBaseId

public void setBaseId(String baseId)
Sets the user's base id (provided that MOA-ID is adequately configured.

Parameters:
baseId - The user's baseid.

getSamlAssertion

public Element getSamlAssertion()
Returns the SAML-Assertion.

Returns:
SAML-Assertion

setSamlAssertion

public void setSamlAssertion(Element samlAssertion)
Sets the SAML-Assertion.


getAuthority

public String getAuthority()

setAuthority

public void setAuthority(String authority)

getDateOfBirth

public String getDateOfBirth()
Specified by:
getDateOfBirth in interface MOAIDPrincipalInterface

setDateOfBirth

public void setDateOfBirth(String dateOfBirth)
Specified by:
setDateOfBirth in interface MOAIDPrincipalInterface

getFamilyName

public String getFamilyName()
Specified by:
getFamilyName in interface MOAIDPrincipalInterface

setFamilyName

public void setFamilyName(String familyName)
Specified by:
setFamilyName in interface MOAIDPrincipalInterface

getGivenName

public String getGivenName()
Specified by:
getGivenName in interface MOAIDPrincipalInterface

setGivenName

public void setGivenName(String givenName)
Specified by:
setGivenName in interface MOAIDPrincipalInterface

getLoginTime

public Date getLoginTime()

setLoginTime

public void setLoginTime(Date loginTime)

getNameIdentifier

public String getNameIdentifier()
Specified by:
getNameIdentifier in interface MOAIDPrincipalInterface

setNameIdentifier

public void setNameIdentifier(String nameIdentifier)
Specified by:
setNameIdentifier in interface MOAIDPrincipalInterface

getNameQualifier

public String getNameQualifier()
Specified by:
getNameQualifier in interface MOAIDPrincipalInterface

setNameQualifier

public void setNameQualifier(String nameQualifier)
Specified by:
setNameQualifier in interface MOAIDPrincipalInterface

getPseudonym

public String getPseudonym()

setPseudonym

public void setPseudonym(String pseudonym)

getStatusCode

public String getStatusCode()
Specified by:
getStatusCode in interface MOAIDPrincipalInterface

setStatusCode

public void setStatusCode(String statusCode)
Specified by:
setStatusCode in interface MOAIDPrincipalInterface

setPassword

public void setPassword(String password)

setRealm

public void setRealm(org.apache.catalina.Realm realm)

setRoles

public void setRoles(String[] roles)

toString

public String toString()
Gets a human readable String of this class.

Specified by:
toString in interface Principal

getExtendedSamlAttributes

public Hashtable getExtendedSamlAttributes()

buildExtSamlId

public static String buildExtSamlId(String name,
                                    String nameSpace)

getExtendedSamlAttribute

public Object getExtendedSamlAttribute(String name,
                                       String nameSpace)

addExtendedSamlAttibute

public void addExtendedSamlAttibute(ExtendedSAMLAttribute attr)
Deprecated. Use addExtendedSamlAttribute(ExtendedSAMLAttribute) instead


addExtendedSamlAttribute

public void addExtendedSamlAttribute(ExtendedSAMLAttribute attr)

setExtendedSamlAttributes

public void setExtendedSamlAttributes(Hashtable extendedSamlAttributes)

getSubjectConfirmationAssertions

public List getSubjectConfirmationAssertions()

setSubjectConfirmationAssertions

public void setSubjectConfirmationAssertions(List subjectConfirmationAssertions)


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.