Class KeyLabelKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class KeyLabelKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    This class specifies a CKDS or PKDS ICSF key label.
    Implementation Note:
    Provider support, ICSF support, and hardware support all determine which key and algorithm types will function on a given system. For details on the supported operations for each key type please consult the z/OS Unique Considerations Hardware Crypto Reference Guide. More information can also be found in the Javadoc reference for the specific SPI class in use (KeyFactory, KeyGenerator, etc.)"
    See Also:
    AESKeyFactory, DESKeyFactory, DESedeKeyFactory
    • Constructor Detail

      • KeyLabelKeySpec

        public KeyLabelKeySpec​(java.lang.String label)
                        throws java.lang.IllegalArgumentException
        Parameters:
        label - The label to a key in the PKDS or CKDS. This label must be 64 bytes or shorter.
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getLabel

        @Deprecated
        public java.lang.String getLabel()
        Deprecated.
        this method is being replaced by getLabelString()
        Returns the label associated with this key spec.
        Returns:
        the label to the key.
      • getLabelBytes

        @Deprecated
        public byte[] getLabelBytes()
        Deprecated.
        this method is being replaced by getLabelString()
        Returns the label associated with this key spec.
        Returns:
        the IBM-1047 byte representation of the key.
      • getLabelString

        public java.lang.String getLabelString()
        Returns the label associated with this key spec.
        Returns:
        the label to the key.