com.cybersource.ws.client
Class Identity

java.lang.Object
  extended by com.cybersource.ws.client.Identity

public class Identity
extends Object

This class is used to store an identity of a unknown entity.


Field Summary
protected  String keyAlias
           
protected  MerchantConfig merchantConfig
           
 String name
           
protected  PrivateKey privateKey
           
protected  String serialNumber
           
protected  X509Certificate x509Cert
           
 
Constructor Summary
Identity(MerchantConfig merchantConfig, X509Certificate x509Certificate)
          Creates an Identity instance.this type of the instance can only be used to store server certificate identity.
Identity(MerchantConfig merchantConfig, X509Certificate x509Certificate, PrivateKey privateKey)
          Creates an Identity instance.this type of the instance can only be used to store merchant identity.
 
Method Summary
 String getKeyAlias()
           
 String getName()
           
 PrivateKey getPrivateKey()
           
 String getSerialNumber()
           
 X509Certificate getX509Cert()
           
 void setKeyAlias(String keyAlias)
           
 void setName(String name)
           
 void setPrivateKey(PrivateKey privateKey)
           
 void setSerialNumber(String serialNumber)
           
 void setX509Cert(X509Certificate x509Cert)
           
 String toString()
          Prints out a nice string that describes the Identity name and size of public key, private key and cert if they exist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name

keyAlias

protected String keyAlias

serialNumber

protected String serialNumber

x509Cert

protected X509Certificate x509Cert

privateKey

protected PrivateKey privateKey

merchantConfig

protected MerchantConfig merchantConfig
Constructor Detail

Identity

public Identity(MerchantConfig merchantConfig,
                X509Certificate x509Certificate)
         throws com.cybersource.ws.client.SignException
Creates an Identity instance.this type of the instance can only be used to store server certificate identity.

Parameters:
merchantConfig - identity will be used for merchant specified in merchantConfig object.
x509Certificate -
Throws:
SignException

Identity

public Identity(MerchantConfig merchantConfig,
                X509Certificate x509Certificate,
                PrivateKey privateKey)
         throws com.cybersource.ws.client.SignException
Creates an Identity instance.this type of the instance can only be used to store merchant identity.

Parameters:
merchantConfig - identity will be used for merchant specified in merchantConfig object.
x509Certificate -
privateKey -
Throws:
SignException
Method Detail

getName

public String getName()

setName

public void setName(String name)

getKeyAlias

public String getKeyAlias()

setKeyAlias

public void setKeyAlias(String keyAlias)

getSerialNumber

public String getSerialNumber()

setSerialNumber

public void setSerialNumber(String serialNumber)

getX509Cert

public X509Certificate getX509Cert()

setX509Cert

public void setX509Cert(X509Certificate x509Cert)

getPrivateKey

public PrivateKey getPrivateKey()

setPrivateKey

public void setPrivateKey(PrivateKey privateKey)

toString

public String toString()
Prints out a nice string that describes the Identity name and size of public key, private key and cert if they exist

Overrides:
toString in class Object
Returns:
String representing the identity name and sizes of keys and cert.


Copyright © 2016. All Rights Reserved.