edu.internet2.middleware.shibboleth.common.config.security
Class X509CredentialFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by edu.internet2.middleware.shibboleth.common.config.security.AbstractCredentialFactoryBean
          extended by edu.internet2.middleware.shibboleth.common.config.security.X509CredentialFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean

public class X509CredentialFactoryBean
extends AbstractCredentialFactoryBean

Factory bean for building X509Credentials.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
X509CredentialFactoryBean()
           
 
Method Summary
protected  Object createInstance()
          
 List<X509Certificate> getCertificates()
          Gets the cerificates respresented by this credential.
 List<X509CRL> getCrls()
          Gets the CRLs respresented by this credential.
 X509Certificate getEntityCertificate()
          Gets the end-entity cerificate respresented by this credential.
 Class getObjectType()
          
 PrivateKey getPrivateKey()
          Gets the private key respresented by this credential.
 void setCertificates(List<X509Certificate> certs)
          Sets the cerificates respresented by this credential.
 void setCrls(List<X509CRL> crls)
          Sets the CRLs respresented by this credential.
 void setEntityCertificate(X509Certificate newCert)
          Sets the end-entity cerificate respresented by this credential.
 void setPrivateKey(PrivateKey key)
          Sets the private key respresented by this credential.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.security.AbstractCredentialFactoryBean
getEntityID, getKeyNames, getUsageType, setEntityID, setKeyNames, setUsageType
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509CredentialFactoryBean

public X509CredentialFactoryBean()
Method Detail

createInstance

protected Object createInstance()
                         throws Exception

Specified by:
createInstance in class AbstractFactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean

getEntityCertificate

public X509Certificate getEntityCertificate()
Gets the end-entity cerificate respresented by this credential.

Returns:
entity certificate respresented by this credential

getCertificates

public List<X509Certificate> getCertificates()
Gets the cerificates respresented by this credential.

Returns:
cerificates respresented by this credential

getCrls

public List<X509CRL> getCrls()
Gets the CRLs respresented by this credential.

Returns:
CRLs respresented by this credential

getPrivateKey

public PrivateKey getPrivateKey()
Gets the private key respresented by this credential.

Returns:
private key respresented by this credential

setEntityCertificate

public void setEntityCertificate(X509Certificate newCert)
Sets the end-entity cerificate respresented by this credential.

Parameters:
newCert - the new entity certificate respresented by this credential

setCertificates

public void setCertificates(List<X509Certificate> certs)
Sets the cerificates respresented by this credential.

Parameters:
certs - cerificates respresented by this credential

setCrls

public void setCrls(List<X509CRL> crls)
Sets the CRLs respresented by this credential.

Parameters:
crls - CRLs respresented by this credential

setPrivateKey

public void setPrivateKey(PrivateKey key)
Sets the private key respresented by this credential.

Parameters:
key - private key respresented by this credential


Copyright © 2006-2011 Internet2. All Rights Reserved.