public class X509ConsumeCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
Constructor and Description |
---|
X509ConsumeCallback() |
Modifier and Type | Method and Description |
---|---|
boolean |
existKeyStore()
Returns whether the keystore used for keylocator exists or not.
|
java.lang.String |
getAlias()
Returns the alias name.
|
java.security.cert.PKIXBuilderParameters |
getCertPathParameter()
Returns the parameter used to check the path of X.509 certificates.
|
java.util.List |
getCertStores()
Returns the list of certificate stores.
|
java.lang.String |
getKeyName()
Returns the name of the key.
|
char[] |
getKeyPassword()
Returns the password for recovering the key.
|
char[] |
getKeyStorePassword()
Returns the type of the keystore used for key locator.
|
java.lang.String |
getKeyStorePath()
Returns the file path from which the keystore used for key locator is loaded.
|
java.lang.String |
getKeyStoreReference()
Returns the reference name of the keystore used for key locator.
|
java.lang.String |
getKeyStoreType()
Returns the type of the keystore used for key locator.
|
java.security.Provider |
getProvider()
Returns the security provider.
|
char[] |
getTrustAnchorPassword()
Returns the type of the trust anchor.
|
java.lang.String |
getTrustAnchorPath()
Returns the file path from which the trust anchor is loaded.
|
java.lang.String |
getTrustAnchorType()
Returns the type of the trust anchor.
|
boolean |
isTrustAnyCertificate()
Returns whether any certificate is trusted or not.
|
void |
setAlias(java.lang.String alias)
Sets the type of the keystore.
|
void |
setCertPathParameter(java.security.cert.PKIXBuilderParameters certPathParam)
Sets the parameter used to check the path of X.509 certificates.
|
void |
setCertStores(java.util.List certStores)
Sets the list of certificate stores.
|
void |
setExistKeyStore(boolean existKeyStore)
Sets whether the keystore used for keylocator exists or not.
|
void |
setKeyName(java.lang.String keyName)
Sets the name of the key.
|
void |
setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
|
void |
setKeyStorePassword(char[] keyStorePassword)
Sets the type of the keystore used for key locator.
|
void |
setKeyStorePath(java.lang.String keyStorePath)
Sets the file path from which the keystore used for key locator is loaded.
|
void |
setKeyStoreReference(java.lang.String keyStoreRef)
Sets the reference name of the keystore used for key locator.
|
void |
setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keystore used for key locator.
|
void |
setProvider(java.security.Provider provider)
Sets the security provider.
|
void |
setTrustAnchorPassword(char[] trustAnchorPassword)
Sets the type of the trust anchor.
|
void |
setTrustAnchorPath(java.lang.String trustAnchorPath)
Sets the file path from which the trust anchor is loaded.
|
void |
setTrustAnchorType(java.lang.String trustAnchorType)
Sets the type of the trust anchor.
|
void |
setTrustAnyCertificate(boolean trustAnyCertificate)
Sets whether any certificate is trusted or not.
|
public boolean existKeyStore()
public void setExistKeyStore(boolean existKeyStore)
existKeyStore
- true if the keystore configuration existspublic java.lang.String getKeyStoreReference()
public void setKeyStoreReference(java.lang.String keyStoreRef)
keyStoreRef
- reference name of the keystorepublic java.lang.String getKeyStorePath()
public void setKeyStorePath(java.lang.String keyStorePath)
keyStorePath
- path of the keystorepublic java.lang.String getKeyStoreType()
public void setKeyStoreType(java.lang.String keyStoreType)
keyStoreType
- type of the keystorepublic char[] getKeyStorePassword()
public void setKeyStorePassword(char[] keyStorePassword)
storePassword
- the password used to check the integrity of the
keystore or the password used to unlock the keystorepublic java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias
- alias namepublic char[] getKeyPassword()
public void setKeyPassword(char[] keyPassword)
keyPassword
- the password for recovering the keypublic java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyPassword
- the name of the keypublic boolean isTrustAnyCertificate()
public void setTrustAnyCertificate(boolean trustAnyCertificate)
trustAnyCertificate
- true if any certificate is trustedpublic java.lang.String getTrustAnchorPath()
public void setTrustAnchorPath(java.lang.String trustAnchorPath)
trustAnchorPath
- path of the trust anchorpublic java.lang.String getTrustAnchorType()
public void setTrustAnchorType(java.lang.String trustAnchorType)
trustAnchorType
- type of the trust anchorpublic char[] getTrustAnchorPassword()
public void setTrustAnchorPassword(char[] trustAnchorPassword)
storePassword
- the password used to check the integrity of the
trust anchor or the password used to unlock the trust anchorpublic java.util.List getCertStores()
public void setCertStores(java.util.List certStores)
certStores
- the list of certificate storespublic java.security.Provider getProvider()
public void setProvider(java.security.Provider provider)
provider
- security providerpublic java.security.cert.PKIXBuilderParameters getCertPathParameter()
public void setCertPathParameter(java.security.cert.PKIXBuilderParameters certPathParam)
certPathParam
- parameter used to check the path of X.509 certificates