public class KeyDescriptorFactoryBean extends AbstractSAMLObjectBuilderFactoryBean<KeyDescriptor>
KeyDescriptor
objects.KeyDescriptorBuilder
Constructor and Description |
---|
KeyDescriptorFactoryBean()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSAMLObjectBuilder<KeyDescriptor> |
builder()
Returns the builder.
|
Class<?> |
getObjectType() |
void |
setCertificate(X509Certificate certificate)
Assigns a certificate to be used as a X.509 data element of the
KeyInfo element within the key descriptor. |
void |
setCertificate(X509Credential credential)
Assigns a certificate in OpenSAML credential format to be used as a X.509 data element of the
KeyInfo
element within the key descriptor. |
void |
setCertificateResource(org.springframework.core.io.Resource certificateResource)
Assigns a resource to a certificate resource that is to be used as a X.509 data element of the
KeyInfo
element within the key descriptor. |
void |
setEncryptionMethods(List<String> encryptionMethods)
Assigns a list of encryption methods.
|
void |
setKeyName(String name)
Assigns the key name of the
KeyInfo element within the key descriptor. |
void |
setUse(UsageType usageType)
Assigns the usage type for the key descriptor.
|
createInstance, localizedStringListToVarArgs, stringListToVarArgs, toVarArgs
public void setUse(UsageType usageType)
usageType
- the usage typepublic void setKeyName(String name)
KeyInfo
element within the key descriptor.name
- the key namepublic void setCertificate(X509Certificate certificate)
KeyInfo
element within the key descriptor.certificate
- the certificatepublic void setCertificate(X509Credential credential)
KeyInfo
element within the key descriptor.credential
- the credentialpublic void setCertificateResource(org.springframework.core.io.Resource certificateResource) throws IOException
KeyInfo
element within the key descriptor.certificateResource
- the certificate resourceIOException
- if the resource can not be readpublic void setEncryptionMethods(List<String> encryptionMethods)
Note: the method only accepts algorithm URI:s. If you need to assign other parts of an EncryptionMethod
object you must install the method manually and not via the builder.
encryptionMethods
- list of algorithmsprotected AbstractSAMLObjectBuilder<KeyDescriptor> builder()
builder
in class AbstractSAMLObjectBuilderFactoryBean<KeyDescriptor>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<KeyDescriptor>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<KeyDescriptor>
Copyright © 2018 Litsec AB. All rights reserved.