com.ibm.websphere.wssecurity.callbackhandler
Class X509GenerateCallback
- java.lang.Object
-
- com.ibm.websphere.wssecurity.callbackhandler.X509GenerateCallback
-
- All Implemented Interfaces:
- javax.security.auth.callback.Callback
public class X509GenerateCallback extends java.lang.Object implements javax.security.auth.callback.CallbackThis is a callback class for the X509 token in generator side.
-
-
Constructor Summary
Constructors Constructor and Description X509GenerateCallback()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetAlias()Returns the alias name.java.util.List<java.security.cert.CertStore>getCertStores()Returns the list of certificate stores.java.lang.StringgetKeyName()Returns the name of the key.char[]getKeyPassword()Returns the password for recovering the key.char[]getKeyStorePassword()Returns the type of the keystore.java.lang.StringgetKeyStorePath()Returns the file path from which the keystore is loaded.java.lang.StringgetKeyStoreReference()Returns the reference name of the keystorejava.lang.StringgetKeyStoreType()Returns the type of the keystore.booleanisUsedIdentityAssertion()Returns the flag that indicates whether the identity assertion is used or not.booleanisUsedRequestorCertificate()Returns whether the certificate of requestor is used or not.voidsetAlias(java.lang.String alias)Sets the type of the keystore.voidsetCertStores(java.util.List<java.security.cert.CertStore> certStores)Sets the list of certificate stores.voidsetKeyName(java.lang.String keyName)Sets the name of the key.voidsetKeyPassword(char[] keyPassword)Sets the password for recovering the key.voidsetKeyStorePassword(char[] storePassword)Sets the type of the keystore.voidsetKeyStorePath(java.lang.String storePath)Sets the file path from which the keystore is loaded.voidsetKeyStoreReference(java.lang.String storeRef)Sets the reference name of the keystore.voidsetKeyStoreType(java.lang.String storeType)Sets the type of the keystore.voidsetUsedIdentityAssertion(boolean identityAssertion)Sets the flag that indicates whether the identity assertion is used or not.voidsetUsedRequestorCertificate(boolean requestorCertificate)Sets whether the certificate of requestor is used or not.
-
-
-
Method Detail
-
getKeyStoreReference
public java.lang.String getKeyStoreReference()
Returns the reference name of the keystore- Returns:
- reference name of the keystore
-
setKeyStoreReference
public void setKeyStoreReference(java.lang.String storeRef)
Sets the reference name of the keystore.- Parameters:
storeRef- reference name of the keystore
-
getKeyStorePath
public java.lang.String getKeyStorePath()
Returns the file path from which the keystore is loaded.- Returns:
- path of the keystore
-
setKeyStorePath
public void setKeyStorePath(java.lang.String storePath)
Sets the file path from which the keystore is loaded.- Parameters:
storePath- path of the keystore
-
getKeyStoreType
public java.lang.String getKeyStoreType()
Returns the type of the keystore.- Returns:
- type of the keystore
-
setKeyStoreType
public void setKeyStoreType(java.lang.String storeType)
Sets the type of the keystore.- Parameters:
storeType- The type of the keystore
-
getKeyStorePassword
public char[] getKeyStorePassword()
Returns the type of the keystore.- Returns:
- password used to check the integrity of the keystore or the password used to unlock the keystore
-
setKeyStorePassword
public void setKeyStorePassword(char[] storePassword)
Sets the type of the keystore.- Parameters:
storePassword- password used to check the integrity of the keystore or the password used to unlock the keystore
-
getAlias
public java.lang.String getAlias()
Returns the alias name.- Returns:
- alias name
-
setAlias
public void setAlias(java.lang.String alias)
Sets the type of the keystore.- Parameters:
alias- alias name
-
getKeyPassword
public char[] getKeyPassword()
Returns the password for recovering the key.- Returns:
- password for recovering the key
-
setKeyPassword
public void setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.- Parameters:
keyPassword- password for recovering the key
-
getKeyName
public java.lang.String getKeyName()
Returns the name of the key.- Returns:
- name of the key
-
setKeyName
public void setKeyName(java.lang.String keyName)
Sets the name of the key.- Parameters:
keyPassword- name of the key
-
getCertStores
public java.util.List<java.security.cert.CertStore> getCertStores()
Returns the list of certificate stores.- Returns:
- list of certificate stores
-
setCertStores
public void setCertStores(java.util.List<java.security.cert.CertStore> certStores)
Sets the list of certificate stores.- Parameters:
certStores- list of certificate stores
-
isUsedRequestorCertificate
public boolean isUsedRequestorCertificate()
Returns whether the certificate of requestor is used or not.- Returns:
- true if the certificate of requestor is used
-
setUsedRequestorCertificate
public void setUsedRequestorCertificate(boolean requestorCertificate)
Sets whether the certificate of requestor is used or not.- Parameters:
usedRequestorCertificate- true if the certificate of requestor is used
-
isUsedIdentityAssertion
public boolean isUsedIdentityAssertion()
Returns the flag that indicates whether the identity assertion is used or not.- Returns:
- true if identity assertion is required
-
setUsedIdentityAssertion
public void setUsedIdentityAssertion(boolean identityAssertion)
Sets the flag that indicates whether the identity assertion is used or not.- Parameters:
identityAssertion- true if identity assertion is required
-
-