edu.internet2.middleware.shibboleth.idp.session.impl
Class ServiceInformationImpl

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.idp.session.impl.ServiceInformationImpl
All Implemented Interfaces:
ServiceInformation, Serializable

public class ServiceInformationImpl
extends Object
implements ServiceInformation

Information about a service a user has logged in to.

See Also:
Serialized Form

Field Summary
private  long authenticationInstant
          Instant the user was authenticated to the service.
private  String entityID
          Entity ID of the service.
private  AuthenticationMethodInformation methodInfo
          Authentication method used to authenticate the user to the service.
private  String nameIdentifier
          Name identifier used to identify the user at the service.
private  String nameIdentifierFormat
          Name identifier format.
private  String nameQualifier
          Name qualifier for the name identifier.
private static long serialVersionUID
          Serial version UID.
private  String SPNameQualifier
          SP Name qualifier for the name identifier.
 
Constructor Summary
ServiceInformationImpl(String id, org.joda.time.DateTime loginInstant, AuthenticationMethodInformation method)
          Default constructor.
 
Method Summary
 boolean equals(Object obj)
          
 AuthenticationMethodInformation getAuthenticationMethod()
          Gets the authentication method used to log into the service.
 String getEntityID()
          Gets the unique identifier for the service.
 org.joda.time.DateTime getLoginInstant()
          Gets the time the user logged in to the service.
 String getNameIdentifier()
          Gets the principal name identifier for the service.
 String getNameIdentifierFormat()
          Gets the principal name identifier format.
 String getNameQualifier()
          Gets the name qualifier for the name identifier.
 String getSPNameQualifier()
          Gets the SP name qualifier for the name identifier.
 int hashCode()
          
 void setSAML2NameIdentifier(NameID nameIdentifier)
          Sets the name identifier for the principal known by the service.
 void setShibbolethNameIdentifier(NameIdentifier nameIdentifier)
          Sets the name identifier for the principal known by the service.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID.

See Also:
Constant Field Values

entityID

private String entityID
Entity ID of the service.


authenticationInstant

private long authenticationInstant
Instant the user was authenticated to the service.


methodInfo

private AuthenticationMethodInformation methodInfo
Authentication method used to authenticate the user to the service.


nameIdentifier

private String nameIdentifier
Name identifier used to identify the user at the service.


nameIdentifierFormat

private String nameIdentifierFormat
Name identifier format.


SPNameQualifier

private String SPNameQualifier
SP Name qualifier for the name identifier.


nameQualifier

private String nameQualifier
Name qualifier for the name identifier.

Constructor Detail

ServiceInformationImpl

public ServiceInformationImpl(String id,
                              org.joda.time.DateTime loginInstant,
                              AuthenticationMethodInformation method)
Default constructor.

Parameters:
id - unique identifier for the service.
loginInstant - time the user logged in to the service.
method - authentication method used to log into the service.
Method Detail

getEntityID

public String getEntityID()
Gets the unique identifier for the service.

Specified by:
getEntityID in interface ServiceInformation
Returns:
unique identifier for the service

getLoginInstant

public org.joda.time.DateTime getLoginInstant()
Gets the time the user logged in to the service.

Specified by:
getLoginInstant in interface ServiceInformation
Returns:
time the user logged in to the service

getAuthenticationMethod

public AuthenticationMethodInformation getAuthenticationMethod()
Gets the authentication method used to log into the service.

Specified by:
getAuthenticationMethod in interface ServiceInformation
Returns:
authentication method used to log into the service

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

setSAML2NameIdentifier

public void setSAML2NameIdentifier(NameID nameIdentifier)
Sets the name identifier for the principal known by the service.

Parameters:
nameIdentifier -

setShibbolethNameIdentifier

public void setShibbolethNameIdentifier(NameIdentifier nameIdentifier)
Sets the name identifier for the principal known by the service.

Parameters:
nameIdentifier -

getNameIdentifier

public String getNameIdentifier()
Gets the principal name identifier for the service.

Specified by:
getNameIdentifier in interface ServiceInformation
Returns:
name identifier

getNameIdentifierFormat

public String getNameIdentifierFormat()
Gets the principal name identifier format.

Specified by:
getNameIdentifierFormat in interface ServiceInformation
Returns:
name identifier format

getNameQualifier

public String getNameQualifier()
Gets the name qualifier for the name identifier.

Specified by:
getNameQualifier in interface ServiceInformation
Returns:
name qualifier

getSPNameQualifier

public String getSPNameQualifier()
Gets the SP name qualifier for the name identifier.

Specified by:
getSPNameQualifier in interface ServiceInformation
Returns:
SP name qualifier


Copyright © 1999-2013. All Rights Reserved.