public abstract class AbstractBasicCredentialFactoryBean extends AbstractCredentialFactoryBean<BasicCredential>
BasicCredential.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBasicCredentialFactoryBean.SecretKeyEncoding
Form of encoding for SecretKey info.
|
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Log.
|
private String |
secretKeyAlgorithm
The SecretKey algorithm.
|
private AbstractBasicCredentialFactoryBean.SecretKeyEncoding |
secretKeyEncoding
The SecretKey encoding used.
|
| Constructor and Description |
|---|
AbstractBasicCredentialFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
decodeSecretKey(byte[] data)
Decode the SecretKey data, based on the specified encoding.
|
protected byte[] |
decodeSecretKey(String data)
Decode the SecretKey data, based on the specified encoding.
|
protected BasicCredential |
doCreateInstance() |
Class<?> |
getObjectType() |
protected abstract PrivateKey |
getPrivateKey()
Get the configured Private key.
|
protected abstract PublicKey |
getPublicKey()
return the configured Public Key.
|
protected abstract SecretKey |
getSecretKey()
return the configured Secret Key.
|
String |
getSecretKeyAlgorithm()
Get the algorithm for the SecretKey.
|
AbstractBasicCredentialFactoryBean.SecretKeyEncoding |
getSecretKeyEncoding()
Get the SecretKey encoding.
|
void |
setSecretKeyAlgorithm(String algorithm)
Set the algorithm for the SecretKey.
|
void |
setSecretKeyEncoding(AbstractBasicCredentialFactoryBean.SecretKeyEncoding encoding)
Set the SecretKey encoding.
|
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageTypecreateInstance, destroyInstanceprivate final org.slf4j.Logger log
@Nullable private AbstractBasicCredentialFactoryBean.SecretKeyEncoding secretKeyEncoding
protected byte[] decodeSecretKey(String data)
data - the Secret key dataprotected byte[] decodeSecretKey(byte[] data)
data - the Secret key dataprotected BasicCredential doCreateInstance() throws Exception
doCreateInstance in class AbstractComponentAwareFactoryBean<BasicCredential>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<BasicCredential>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<BasicCredential>@Nullable public String getSecretKeyAlgorithm()
public void setSecretKeyAlgorithm(@Nonnull String algorithm)
algorithm - The algorithm to set.public AbstractBasicCredentialFactoryBean.SecretKeyEncoding getSecretKeyEncoding()
public void setSecretKeyEncoding(@Nonnull AbstractBasicCredentialFactoryBean.SecretKeyEncoding encoding)
encoding - the new encoding@Nullable protected abstract PublicKey getPublicKey()
@Nullable protected abstract PrivateKey getPrivateKey()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.