Class RACFObject


  • public class RACFObject
    extends java.lang.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, java.lang.String acertowner, int kl)
      Construct a com.ibm.crypto.provider.RACFObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getCert()
      Retrieve the certificate associated with this RACF entry.
      java.lang.String getCertOwner()
      Get the certificate owner.
      byte[] getDistinguishedName()
      Get the distinguished name.
      byte[] getKey()
      Retrieve the private key associated with this RACF entry.
      int getKeyLength()
      Get the private key length.
      int getKeyType()
      Get the private key type.
      boolean getTrusted()
      Check whether the certificate can be trusted.
      int getUsage()
      Get certificate usage.
      java.lang.String toString()
      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 Detail

      • RACFObject

        public RACFObject​(byte[] acert,
                          byte[] akey,
                          byte[] DN,
                          int kt,
                          boolean t,
                          int ku,
                          java.lang.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 Detail

      • 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 java.lang.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 java.lang.String toString()
        Returns a printable description of this RACF key ring entry.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a printable description of this RACF key ring entry.