IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.wssecurity.callbackhandler
Class X509GenerateCallback

java.lang.Object
  extended by 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.Callback

This is a callback class for the X509 token in generator side.

See Also:
X509Token, X509PKCS7Token, X509PKIPathToken, X509GenerateCallbackHandler

Constructor Summary
X509GenerateCallback()
           
 
Method Summary
 java.lang.String getAlias()
          Returns the alias name.
 java.util.List<java.security.cert.CertStore> 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.
 java.lang.String getKeyStorePath()
          Returns the file path from which the keystore is loaded.
 java.lang.String getKeyStoreReference()
          Returns the reference name of the keystore
 java.lang.String getKeyStoreType()
          Returns the type of the keystore.
 boolean isUsedIdentityAssertion()
          Returns the flag that indicates whether the identity assertion is used or not.
 boolean isUsedRequestorCertificate()
          Returns whether the certificate of requestor is used or not.
 void setAlias(java.lang.String alias)
          Sets the type of the keystore.
 void setCertStores(java.util.List<java.security.cert.CertStore> certStores)
          Sets the list of certificate stores.
 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[] storePassword)
          Sets the type of the keystore.
 void setKeyStorePath(java.lang.String storePath)
          Sets the file path from which the keystore is loaded.
 void setKeyStoreReference(java.lang.String storeRef)
          Sets the reference name of the keystore.
 void setKeyStoreType(java.lang.String storeType)
          Sets the type of the keystore.
 void setUsedIdentityAssertion(boolean identityAssertion)
          Sets the flag that indicates whether the identity assertion is used or not.
 void setUsedRequestorCertificate(boolean requestorCertificate)
          Sets whether the certificate of requestor is used or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509GenerateCallback

public X509GenerateCallback()
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

IBM WebSphere Application ServerTM
Release 8