ibm.security.internal.spec

Class RawKeySpec

  • java.lang.Object
    • ibm.security.internal.spec.RawKeySpec
  • All Implemented Interfaces:
    java.security.spec.KeySpec


    public class RawKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    This is here for easier compatability with IBMJDK 21 and above. This is a KeySpec that is used to specify a key by its byte array implementation. Since the new PQC algs the bytes are defined as byte arrays.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RawKeySpec(byte[] key) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void finalize() 
      byte[] getKeyArr() 
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RawKeySpec

        public RawKeySpec(byte[] key)
        Parameters:
        key - contains the key as a byte array
    • Method Detail

      • getKeyArr

        public byte[] getKeyArr()
        Returns:
        a copy of the key bits
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable

© Portions Copyright 2003, 2023 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2023 Oracle and/or its affiliates. All rights reserved.