edu.internet2.middleware.shibboleth.common.config.relyingparty.saml
Class AbstractSAMLProfileConfigurationFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by edu.internet2.middleware.shibboleth.common.config.relyingparty.saml.AbstractSAMLProfileConfigurationFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AbstractSAML1ProfileConfigurationFactoryBean, AbstractSAML2ProfileConfigurationFactoryBean

public abstract class AbstractSAMLProfileConfigurationFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

Base Spring factory bean for creating SAML profile configurations.


Field Summary
private  long assertionLifetime
          Amount of time before an issued assertion expires.
private  List<String> audiences
          Audiences of issued assertions.
private  byte[] outboundArtifactType
          2-byte artifact type used for outbound messages.
private  org.opensaml.ws.security.SecurityPolicy profileSecurityPolicy
          Security policy for this profile.
private  CryptoOperationRequirementLevel signAssertions
          Whether assertions should be signed.
private  Credential signingCredential
          Credential used to sign assertions.
private  CryptoOperationRequirementLevel signRequests
          Whether to sign protocol requests.
private  CryptoOperationRequirementLevel signResponses
          Whether to sign protocol responses.
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
AbstractSAMLProfileConfigurationFactoryBean()
           
 
Method Summary
 long getAssertionLifetime()
          Gets the amount of time, in milliseconds, before an issued assertion expires.
 List<String> getAudiences()
          Gets the audiences of issued assertions.
 byte[] getOutboundArtifactType()
          Gets the 2-byte artifact type used for outbound messages.
 org.opensaml.ws.security.SecurityPolicy getProfileSecurityPolicy()
          Gets the security policy for this profile.
 CryptoOperationRequirementLevel getSignAssertions()
          Gets whether assertions should be signed.
 Credential getSigningCredential()
          Gets the credential used to sign assertions.
 CryptoOperationRequirementLevel getSignRequests()
          Gets whether to sign protocol requests.
 CryptoOperationRequirementLevel getSignResposnes()
          Gets whether to sign protocol responses.
protected  void populateBean(AbstractSAMLProfileConfiguration configuration)
          Populates the given profile configuration with standard information.
 void setAssertionLifetime(long lifetime)
          Sets the amount of time before an issued assertion expires.
 void setAudiences(List<String> newAudiences)
          Sets the audiences of issued assertions.
 void setOutboundArtifactType(byte[] type)
          Sets the 2-byte artifact type used for outbound messages.
 void setProfileSecurityPolicy(org.opensaml.ws.security.SecurityPolicy policy)
          Sets the security policy for this profile.
 void setSignAssertions(CryptoOperationRequirementLevel sign)
          Sets whether assertions should be signed.
 void setSigningCredential(Credential credential)
          Sets the credential used to sign assertions.
 void setSignRequests(CryptoOperationRequirementLevel sign)
          Sets whether to sign protocol requests.
 void setSignResponses(CryptoOperationRequirementLevel sign)
          Sets whether to sign protocol responses.
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, createInstance, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, getObjectType, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

audiences

private List<String> audiences
Audiences of issued assertions.


assertionLifetime

private long assertionLifetime
Amount of time before an issued assertion expires.


outboundArtifactType

private byte[] outboundArtifactType
2-byte artifact type used for outbound messages.


signAssertions

private CryptoOperationRequirementLevel signAssertions
Whether assertions should be signed.


signRequests

private CryptoOperationRequirementLevel signRequests
Whether to sign protocol requests.


signResponses

private CryptoOperationRequirementLevel signResponses
Whether to sign protocol responses.


signingCredential

private Credential signingCredential
Credential used to sign assertions.


profileSecurityPolicy

private org.opensaml.ws.security.SecurityPolicy profileSecurityPolicy
Security policy for this profile.

Constructor Detail

AbstractSAMLProfileConfigurationFactoryBean

public AbstractSAMLProfileConfigurationFactoryBean()
Method Detail

getAssertionLifetime

public long getAssertionLifetime()
Gets the amount of time, in milliseconds, before an issued assertion expires. A negative value indicates the assertion never expires.

Returns:
amount of time before an issued assertion expires

getAudiences

public List<String> getAudiences()
Gets the audiences of issued assertions.

Returns:
audiences of issued assertions

getOutboundArtifactType

public byte[] getOutboundArtifactType()
Gets the 2-byte artifact type used for outbound messages.

Returns:
2-byte artifact type used for outbound messages

getProfileSecurityPolicy

public org.opensaml.ws.security.SecurityPolicy getProfileSecurityPolicy()
Gets the security policy for this profile.

Returns:
security policy for this profile

getSignAssertions

public CryptoOperationRequirementLevel getSignAssertions()
Gets whether assertions should be signed.

Returns:
whether assertions should be signed

getSigningCredential

public Credential getSigningCredential()
Gets the credential used to sign assertions.

Returns:
credential used to sign assertions

getSignRequests

public CryptoOperationRequirementLevel getSignRequests()
Gets whether to sign protocol requests.

Returns:
whether to sign protocol requests

getSignResposnes

public CryptoOperationRequirementLevel getSignResposnes()
Gets whether to sign protocol responses.

Returns:
whether to sign protocol responses

setAssertionLifetime

public void setAssertionLifetime(long lifetime)
Sets the amount of time before an issued assertion expires.

Parameters:
lifetime - amount of time before an issued assertion expires

setAudiences

public void setAudiences(List<String> newAudiences)
Sets the audiences of issued assertions.

Parameters:
newAudiences - audiences of issued assertions

setOutboundArtifactType

public void setOutboundArtifactType(byte[] type)
Sets the 2-byte artifact type used for outbound messages.

Parameters:
type - 2-byte artifact type used for outbound messages

setProfileSecurityPolicy

public void setProfileSecurityPolicy(org.opensaml.ws.security.SecurityPolicy policy)
Sets the security policy for this profile.

Parameters:
policy - security policy for this profile

setSignAssertions

public void setSignAssertions(CryptoOperationRequirementLevel sign)
Sets whether assertions should be signed.

Parameters:
sign - whether assertions should be signed

setSigningCredential

public void setSigningCredential(Credential credential)
Sets the credential used to sign assertions.

Parameters:
credential - credential used to sign assertions

setSignRequests

public void setSignRequests(CryptoOperationRequirementLevel sign)
Sets whether to sign protocol requests.

Parameters:
sign - whether to sign protocol requests

setSignResponses

public void setSignResponses(CryptoOperationRequirementLevel sign)
Sets whether to sign protocol responses.

Parameters:
sign - whether to sign protocol responses

populateBean

protected void populateBean(AbstractSAMLProfileConfiguration configuration)
Populates the given profile configuration with standard information.

Parameters:
configuration - configuration to populate


Copyright © 1999-2012. All Rights Reserved.