com.novell.security.japi.pki
Class NPKI_CertificateName

java.lang.Object
  |
  +--com.novell.security.japi.pki.NPKI_CertificateName

public class NPKI_CertificateName
extends java.lang.Object

Specifies what certificates and the behavior of NPKIAPI.CreateDefaultCertificates.


Field Summary
protected  int m_ccode
           
protected  java.lang.String m_certificateName
           
protected  java.lang.String m_DNSName
           
protected  int m_flags
           
protected  java.lang.String m_ipAddress
           
static int NPKI_CERTIFICATE_CREATE_FORCE
          Use this flag if you want to force the default certificates to be overridden with a new key pair.
static int NPKI_CERTIFICATE_CREATE_NO_OVERWRITE
          Use this flag if you do not want any of the current default certificates to be over-ridden.
static int NPKI_CERTIFICATE_CREATE_NORMAL
          This is the default flag.
static int NPKI_DEFAULT_DNS_CERTIFICATE
          Specifies that this certificate is the default DNS certificate
static int NPKI_DEFAULT_IP_CERTIFICATE
          Specifies that this certificate is the default IP certificate
 
Constructor Summary
NPKI_CertificateName()
          Constructor for the certificate name.
 
Method Summary
 java.lang.String getCertificateName()
          Gets the name that was used to create a Key Material Object.
 java.lang.String getDNSName()
          Gets the DNS Name to be used to name the KMO.
 int getFlags()
          Gets the flags that determines the behavior of CreateDefaultCertificates.
 java.lang.String getIPAddress()
          Gets the IP Address to be used to name the KMO.
 int getRetCode()
          Gets the result of trying to create a certificate with the name specified in by getCertificateName.
 void setCertificateName(java.lang.String certificateName)
          Sets name to be used to create a Key Material Object.
 void setDNSName(java.lang.String DNSName)
          Sets the DNS Name to be used to name the KMO.
 void setFlags(int flags)
          Sets the flags to determine the behavior of CreateDefaultCertificates.
 void setIPAddress(java.lang.String ipAddr)
          Sets the IP Address to be used to name the KMO.
 void setRetCode(int ccode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_flags

protected int m_flags

m_certificateName

protected java.lang.String m_certificateName

m_ipAddress

protected java.lang.String m_ipAddress

m_DNSName

protected java.lang.String m_DNSName

m_ccode

protected int m_ccode

NPKI_CERTIFICATE_CREATE_NORMAL

public static final int NPKI_CERTIFICATE_CREATE_NORMAL
This is the default flag. The default certificates will be overwritten if they are about to expire or have expired and the CA that created them is the same CA used by the current organization.

See Also:
Constant Field Values

NPKI_CERTIFICATE_CREATE_FORCE

public static final int NPKI_CERTIFICATE_CREATE_FORCE
Use this flag if you want to force the default certificates to be overridden with a new key pair. NOTE: this can not be or'ed with NPKI_CERTIFICATE_NO_OVERWRITE.

See Also:
Constant Field Values

NPKI_CERTIFICATE_CREATE_NO_OVERWRITE

public static final int NPKI_CERTIFICATE_CREATE_NO_OVERWRITE
Use this flag if you do not want any of the current default certificates to be over-ridden. NOTE: this can not be or'ed with NPKI_CERTIFICATE_CREATE_FORCE.

See Also:
Constant Field Values

NPKI_DEFAULT_IP_CERTIFICATE

public static final int NPKI_DEFAULT_IP_CERTIFICATE
Specifies that this certificate is the default IP certificate

See Also:
Constant Field Values

NPKI_DEFAULT_DNS_CERTIFICATE

public static final int NPKI_DEFAULT_DNS_CERTIFICATE
Specifies that this certificate is the default DNS certificate

See Also:
Constant Field Values
Constructor Detail

NPKI_CertificateName

public NPKI_CertificateName()
Constructor for the certificate name.

Method Detail

setFlags

public void setFlags(int flags)
Sets the flags to determine the behavior of CreateDefaultCertificates.

Parameters:
flags - One or more of the predefined flags.

getFlags

public int getFlags()
Gets the flags that determines the behavior of CreateDefaultCertificates.

Returns:
The flags being used to define the behavior of CreateDefaultCertificates.

setCertificateName

public void setCertificateName(java.lang.String certificateName)
Sets name to be used to create a Key Material Object.

Parameters:
certificateName - Specifies the name to use when creating a KMO.

getCertificateName

public java.lang.String getCertificateName()
Gets the name that was used to create a Key Material Object.

Returns:
The name to use when creating a KMO or the name that was specified by a setCertificateName.

setIPAddress

public void setIPAddress(java.lang.String ipAddr)
Sets the IP Address to be used to name the KMO.

Parameters:
ipAddr - The IP Address to use when creating a KMO.

getIPAddress

public java.lang.String getIPAddress()
Gets the IP Address to be used to name the KMO.

Returns:
The IP Address to use when creating a KMO.

setDNSName

public void setDNSName(java.lang.String DNSName)
Sets the DNS Name to be used to name the KMO.

Parameters:
DNSName - The DNS Name to use when creating a KMO.

getDNSName

public java.lang.String getDNSName()
Gets the DNS Name to be used to name the KMO.

Returns:
The DNS Name to use when creating a KMO.

getRetCode

public int getRetCode()
Gets the result of trying to create a certificate with the name specified in by getCertificateName.

Returns:
The success or failure code.

setRetCode

public void setRetCode(int ccode)