java.lang.Object
com.ibm.crypto.zsecurity.provider.RACFObject
Wrapper for a RACF key ring entry.
-
Constructor Summary
ConstructorsConstructorDescriptionRACFObject(byte[] acert, byte[] akey, byte[] DN, int kt, boolean t, int ku, String acertowner, int kl) Construct aRACFObject. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getCert()Retrieve the certificate associated with this RACF entry.Get the certificate owner.byte[]Get the distinguished name.byte[]getKey()Retrieve the private key associated with this RACF entry.intGet the private key length.intGet the private key type.booleanCheck whether the certificate can be trusted.intgetUsage()Get certificate usage.toString()Returns a printable description of this 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 aRACFObject.- Parameters:
acert- certificate associated with this RACF entryakey- private key associated with this RACF entryDN- distinguished namekt- private key typet- whether the certificate can be trustedku- certificate usageacertowner- certificate ownerkl- 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
Get the certificate owner.- Returns:
- the certificate owner.
-
getKeyLength
public int getKeyLength()Get the private key length.- Returns:
- the private key length.
-
toString
Returns a printable description of this RACF key ring entry.
-