com.ibm.websphere.wssecurity.callbackhandler

Class X509ConsumeCallback

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.X509ConsumeCallback
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class X509ConsumeCallback
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.Callback
This is a callback class for the X509 token in consumer side.
See Also:
X509Token, X509PKCS7Token, X509PKIPathToken, X509ConsumeCallbackHandler

Constructor Summary

Constructor and Description
X509ConsumeCallback()

Method Summary

Modifier and Type Method and Description
  1. boolean
existKeyStore()
Returns whether the keystore used for keylocator exists or not.
  1. java.lang.String
getAlias()
Returns the alias name.
  1. java.security.cert.PKIXBuilderParameters
getCertPathParameter()
Returns the parameter used to check the path of X.509 certificates.
  1. java.util.List
getCertStores()
Returns the list of certificate stores.
  1. java.lang.String
getKeyName()
Returns the name of the key.
  1. char[]
getKeyPassword()
Returns the password for recovering the key.
  1. char[]
getKeyStorePassword()
Returns the type of the keystore used for key locator.
  1. java.lang.String
getKeyStorePath()
Returns the file path from which the keystore used for key locator is loaded.
  1. java.lang.String
getKeyStoreReference()
Returns the reference name of the keystore used for key locator.
  1. java.lang.String
getKeyStoreType()
Returns the type of the keystore used for key locator.
  1. java.security.Provider
getProvider()
Returns the security provider.
  1. char[]
getTrustAnchorPassword()
Returns the type of the trust anchor.
  1. java.lang.String
getTrustAnchorPath()
Returns the file path from which the trust anchor is loaded.
  1. java.lang.String
getTrustAnchorType()
Returns the type of the trust anchor.
  1. boolean
isTrustAnyCertificate()
Returns whether any certificate is trusted or not.
  1. void
setAlias(java.lang.String alias)
Sets the type of the keystore.
  1. void
setCertPathParameter(java.security.cert.PKIXBuilderParameters certPathParam)
Sets the parameter used to check the path of X.509 certificates.
  1. void
setCertStores(java.util.List certStores)
Sets the list of certificate stores.
  1. void
setExistKeyStore(boolean existKeyStore)
Sets whether the keystore used for keylocator exists or not.
  1. void
setKeyName(java.lang.String keyName)
Sets the name of the key.
  1. void
setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
  1. void
setKeyStorePassword(char[] keyStorePassword)
Sets the type of the keystore used for key locator.
  1. void
setKeyStorePath(java.lang.String keyStorePath)
Sets the file path from which the keystore used for key locator is loaded.
  1. void
setKeyStoreReference(java.lang.String keyStoreRef)
Sets the reference name of the keystore used for key locator.
  1. void
setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keystore used for key locator.
  1. void
setProvider(java.security.Provider provider)
Sets the security provider.
  1. void
setTrustAnchorPassword(char[] trustAnchorPassword)
Sets the type of the trust anchor.
  1. void
setTrustAnchorPath(java.lang.String trustAnchorPath)
Sets the file path from which the trust anchor is loaded.
  1. void
setTrustAnchorType(java.lang.String trustAnchorType)
Sets the type of the trust anchor.
  1. void
setTrustAnyCertificate(boolean trustAnyCertificate)
Sets whether any certificate is trusted or not.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

X509ConsumeCallback

  1. public X509ConsumeCallback()

Method Detail

existKeyStore

  1. public boolean existKeyStore()
Returns whether the keystore used for keylocator exists or not.
Returns:
true if the keystore configuration exists

setExistKeyStore

  1. public void setExistKeyStore(boolean existKeyStore)
Sets whether the keystore used for keylocator exists or not.
Parameters:
existKeyStore - true if the keystore configuration exists

getKeyStoreReference

  1. public java.lang.String getKeyStoreReference( )
Returns the reference name of the keystore used for key locator.
Returns:
reference name of the keystore

setKeyStoreReference

  1. public void setKeyStoreReference( java.lang.String keyStoreRef)
Sets the reference name of the keystore used for key locator.
Parameters:
keyStoreRef - reference name of the keystore

getKeyStorePath

  1. public java.lang.String getKeyStorePath( )
Returns the file path from which the keystore used for key locator is loaded.
Returns:
path of the keystore

setKeyStorePath

  1. public void setKeyStorePath(java.lang.String keyStorePath)
Sets the file path from which the keystore used for key locator is loaded.
Parameters:
keyStorePath - path of the keystore

getKeyStoreType

  1. public java.lang.String getKeyStoreType( )
Returns the type of the keystore used for key locator.
Returns:
type of the keystore

setKeyStoreType

  1. public void setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keystore used for key locator.
Parameters:
keyStoreType - type of the keystore

getKeyStorePassword

  1. public char[] getKeyStorePassword( )
Returns the type of the keystore used for key locator.
Returns:
password used to check the integrity of the keystore used for key locator or the password used to unlock the keystore

setKeyStorePassword

  1. public void setKeyStorePassword( char[] keyStorePassword)
Sets the type of the keystore used for key locator.

getAlias

  1. public java.lang.String getAlias( )
Returns the alias name.
Returns:
alias name

setAlias

  1. public void setAlias(java.lang.String alias)
Sets the type of the keystore.
Parameters:
alias - alias name

getKeyPassword

  1. public char[] getKeyPassword()
Returns the password for recovering the key.
Returns:
password for recovering the key

setKeyPassword

  1. public void setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
Parameters:
keyPassword - the password for recovering the key

getKeyName

  1. public java.lang.String getKeyName( )
Returns the name of the key.
Returns:
name of the key

setKeyName

  1. public void setKeyName(java.lang.String keyName)
Sets the name of the key.

isTrustAnyCertificate

  1. public boolean isTrustAnyCertificate( )
Returns whether any certificate is trusted or not.
Returns:
true if any certificate is trusted

setTrustAnyCertificate

  1. public void setTrustAnyCertificate( boolean trustAnyCertificate)
Sets whether any certificate is trusted or not.
Parameters:
trustAnyCertificate - true if any certificate is trusted

getTrustAnchorPath

  1. public java.lang.String getTrustAnchorPath( )
Returns the file path from which the trust anchor is loaded.
Returns:
path of the trust anchor

setTrustAnchorPath

  1. public void setTrustAnchorPath( java.lang.String trustAnchorPath)
Sets the file path from which the trust anchor is loaded.
Parameters:
trustAnchorPath - path of the trust anchor

getTrustAnchorType

  1. public java.lang.String getTrustAnchorType( )
Returns the type of the trust anchor.
Returns:
type of the trust anchor

setTrustAnchorType

  1. public void setTrustAnchorType( java.lang.String trustAnchorType)
Sets the type of the trust anchor.
Parameters:
trustAnchorType - type of the trust anchor

getTrustAnchorPassword

  1. public char[] getTrustAnchorPassword( )
Returns the type of the trust anchor.
Returns:
password used to check the integrity of the trust anchor or the password used to unlock the trust anchor

setTrustAnchorPassword

  1. public void setTrustAnchorPassword( char[] trustAnchorPassword)
Sets the type of the trust anchor.

getCertStores

  1. public java.util.List getCertStores( )
Returns the list of certificate stores.
Returns:
list of certificate stores

setCertStores

  1. public void setCertStores(java.util.List certStores)
Sets the list of certificate stores.
Parameters:
certStores - the list of certificate stores

getProvider

  1. public java.security.Provider getProvider( )
Returns the security provider.
Returns:
security provider

setProvider

  1. public void setProvider(java.security.Provider provider)
Sets the security provider.
Parameters:
provider - security provider

getCertPathParameter

  1. public java.security.cert.PKIXBuilderParameters getCertPathParameter( )
Returns the parameter used to check the path of X.509 certificates.
Returns:
parameter used to check the path of X.509 certificates

setCertPathParameter

  1. public void setCertPathParameter( java.security.cert.PKIXBuilderParameters certPathParam)
Sets the parameter used to check the path of X.509 certificates.
Parameters:
certPathParam - parameter used to check the path of X.509 certificates