- java.lang.Object
-
- com.ibm.crypto.zsecurity.provider.RACFObject
-
public class RACFObject extends java.lang.ObjectWrapper 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 acom.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.StringgetCertOwner()Get the certificate owner.byte[]getDistinguishedName()Get the distinguished name.byte[]getKey()Retrieve the private key associated with this RACF entry.intgetKeyLength()Get the private key length.intgetKeyType()Get the private key type.booleangetTrusted()Check whether the certificate can be trusted.intgetUsage()Get certificate usage.java.lang.StringtoString()Returns a printable description of this RACF key ring entry.
-
-
-
Constructor Detail
-
RACFObject
public RACFObject(byte[] acert, byte[] akey, byte[] DN, int kt, boolean t, int ku, java.lang.String acertowner, int kl)Construct acom.ibm.crypto.provider.RACFObject.- 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 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:
toStringin classjava.lang.Object- Returns:
- a printable description of this RACF key ring entry.
-
-