edu.internet2.middleware.shibboleth.common.relyingparty
Class RelyingPartyConfiguration

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.relyingparty.RelyingPartyConfiguration

public class RelyingPartyConfiguration
extends Object

A set of configuration options for a relying party.


Constructor Summary
RelyingPartyConfiguration(String provider)
          Constructor.
RelyingPartyConfiguration(String relyingParty, String provider)
          Constructor.
 
Method Summary
 String getDefaultAuthenticationMethod()
          Gets the authentication method to use if one is not specified within a request.
 org.opensaml.xml.security.credential.Credential getDefaultSigningCredential()
          Gets the default signing credential for the relying party.
 ProfileConfiguration getProfileConfiguration(String profileId)
          Convenience method for retrieving a given profile configuration from the Map returned by getProfileConfigurations().
 Map<String,ProfileConfiguration> getProfileConfigurations()
          Gets whether assertions should be encrypted.
 String getProviderId()
          Gets the entity ID of the responder when communicating with the relying party.
 String getRelyingPartyId()
          Gets the entity ID of the relying party this configuration is for.
 void setDefaultAuthenticationMethod(String method)
          Sets the authentication method to use if one is not specified within a request.
 void setDefaultSigningCredential(org.opensaml.xml.security.credential.Credential credential)
          Sets the default signing credential for the relying party.
protected  void setProviderId(String id)
          Sets the entity ID of the responder when communicating with the relying party.
protected  void setRelyingPartyId(String id)
          Sets the entity ID of the relying party this configuration is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelyingPartyConfiguration

public RelyingPartyConfiguration(String provider)
Constructor.

Parameters:
provider - entity ID of the responder when communicating with the relying party

RelyingPartyConfiguration

public RelyingPartyConfiguration(String relyingParty,
                                 String provider)
Constructor.

Parameters:
relyingParty - ID of the relying party this configuration is for
provider - entity ID of the responder when communicating with the relying party
Method Detail

getRelyingPartyId

public String getRelyingPartyId()
Gets the entity ID of the relying party this configuration is for.

Returns:
the entity ID of the relying party this configuration is for

setRelyingPartyId

protected void setRelyingPartyId(String id)
Sets the entity ID of the relying party this configuration is for.

Parameters:
id - entity ID of the relying party this configuration is for

getProviderId

public String getProviderId()
Gets the entity ID of the responder when communicating with the relying party.

Returns:
entity ID of the responder when communicating with the relying party

setProviderId

protected void setProviderId(String id)
Sets the entity ID of the responder when communicating with the relying party.

Parameters:
id - entity ID of the responder when communicating with the relying party

getDefaultAuthenticationMethod

public String getDefaultAuthenticationMethod()
Gets the authentication method to use if one is not specified within a request.

Returns:
authentication method to use if one is not specified within a request

setDefaultAuthenticationMethod

public void setDefaultAuthenticationMethod(String method)
Sets the authentication method to use if one is not specified within a request.

Parameters:
method - authentication method to use if one is not specified within a request

getDefaultSigningCredential

public org.opensaml.xml.security.credential.Credential getDefaultSigningCredential()
Gets the default signing credential for the relying party. This is provided as a convenience method so that this credential need not be defined on every signing supporting profile configuration. If a profile configuration has a defined signing credential it must be used in place of the credential retrieved here.

Returns:
default signing credential for the relying party

setDefaultSigningCredential

public void setDefaultSigningCredential(org.opensaml.xml.security.credential.Credential credential)
Sets the default signing credential for the relying party.

Parameters:
credential - default signing credential for the relying party

getProfileConfigurations

public Map<String,ProfileConfiguration> getProfileConfigurations()
Gets whether assertions should be encrypted.

Returns:
configuration for specific communication profiles used by the system indexed by profile ID

getProfileConfiguration

public ProfileConfiguration getProfileConfiguration(String profileId)
Convenience method for retrieving a given profile configuration from the Map returned by getProfileConfigurations().

Parameters:
profileId - unique Id of the profile
Returns:
the profile configuration or null


Copyright © 2006-2008 Internet2. All Rights Reserved.