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

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.BasicCredentialFactoryBean
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

public class BasicCredentialFactoryBean
extends AbstractCredentialFactoryBean

Factory bean for building X509Certificates.


Field Summary
private  org.slf4j.Logger log
          Class logger.
private  PrivateKey privateKey
          Private key respresented by this credential.
private  PublicKey publicKey
          Public key respresented by this credential.
private  SecretKey secretKey
          Secret key respresented by this credential.
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
BasicCredentialFactoryBean()
           
 
Method Summary
protected  Object createInstance()
          
 Class getObjectType()
          
 PrivateKey getPrivateKey()
          Gets the private key respresented by this credential.
 PublicKey getPublicKey()
          Gets the public key respresented by this credential.
 SecretKey getSecretKey()
          Gets the secret key respresented by this credential.
 void setPrivateKey(PrivateKey key)
          Sets the private key respresented by this credential.
 void setPublicKey(PublicKey key)
          Sets the public key respresented by this credential.
 void setSecretKey(SecretKey key)
          Sets the secret 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
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.


secretKey

private SecretKey secretKey
Secret key respresented by this credential.


privateKey

private PrivateKey privateKey
Private key respresented by this credential.


publicKey

private PublicKey publicKey
Public key respresented by this credential.

Constructor Detail

BasicCredentialFactoryBean

public BasicCredentialFactoryBean()
Method Detail

createInstance

protected Object createInstance()
                         throws Exception

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

getPrivateKey

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

Returns:
private key respresented by this credential

getPublicKey

public PublicKey getPublicKey()
Gets the public key respresented by this credential.

Returns:
public key respresented by this credential

getSecretKey

public SecretKey getSecretKey()
Gets the secret key respresented by this credential.

Returns:
secret key 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

setPublicKey

public void setPublicKey(PublicKey key)
Sets the public key respresented by this credential.

Parameters:
key - public key respresented by this credential

setSecretKey

public void setSecretKey(SecretKey key)
Sets the secret key respresented by this credential.

Parameters:
key - secret key respresented by this credential


Copyright © 1999-2012. All Rights Reserved.