Class RACFObject

java.lang.Object
com.ibm.crypto.zsecurity.provider.RACFObject

public class RACFObject extends Object
Wrapper for a RACF key ring entry.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RACFObject(byte[] acert, byte[] akey, byte[] DN, int kt, boolean t, int ku, String acertowner, int kl)
    Construct a com.ibm.crypto.provider.RACFObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Retrieve the certificate associated with this RACF entry.
    Get the certificate owner.
    byte[]
    Get the distinguished name.
    byte[]
    Retrieve the private key associated with this RACF entry.
    int
    Get the private key length.
    int
    Get the private key type.
    boolean
    Check whether the certificate can be trusted.
    int
    Get certificate usage.
    Returns a printable description of this RACF key ring entry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RACFObject

      public RACFObject(byte[] acert, byte[] akey, byte[] DN, int kt, boolean t, int ku, String acertowner, int kl)
      Construct a com.ibm.crypto.provider.RACFObject.
      Parameters:
      acert - certificate associated with this RACF entry
      akey - private key associated with this RACF entry
      DN - distinguished name
      kt - private key type
      t - whether the certificate can be trusted
      ku - certificate usage
      acertowner - certificate owner
      kl - private key length
  • Method Details

    • getCert

      public byte[] getCert()
      Retrieve the certificate associated with this RACF entry.
      Returns:
      the certificate associated with this RACF entry.
    • getKey

      public byte[] getKey()
      Retrieve the private key associated with this RACF entry.
      Returns:
      the private key associated with this RACF entry.
    • getDistinguishedName

      public byte[] getDistinguishedName()
      Get the distinguished name.
      Returns:
      the distinguished name.
    • getKeyType

      public int getKeyType()
      Get the private key type.
      Returns:
      the private key type.
    • getTrusted

      public boolean getTrusted()
      Check whether the certificate can be trusted.
      Returns:
      true if the certificate can be trusted, false otherwise.
    • getUsage

      public int getUsage()
      Get certificate usage.
      Returns:
      certificate usage.
    • getCertOwner

      public String getCertOwner()
      Get the certificate owner.
      Returns:
      the certificate owner.
    • getKeyLength

      public int getKeyLength()
      Get the private key length.
      Returns:
      the private key length.
    • toString

      public String toString()
      Returns a printable description of this RACF key ring entry.
      Overrides:
      toString in class Object
      Returns:
      a printable description of this RACF key ring entry.