Class RACFObject

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

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

    • RACFObject

      public RACFObject(byte[] acert, byte[] akey, byte[] DN, int kt, boolean t, int ku, String acertowner, int kl)
      Construct a 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.