Class HkdfSpec

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

    public class HkdfSpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HkdfSpec.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      HkdfSpec​(int mode, byte[] secret, byte[] salt, byte[] info, byte[] prk, int desiredLength, java.lang.String algorithmName)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HkdfSpec.Builder builder()  
      static HkdfSpec hkdfExpandSpec​(byte[] prk, byte[] info, int desiredLength, java.lang.String algorithmName)  
      static HkdfSpec hkdfExtractSpec​(byte[] secret, byte[] salt, java.lang.String algorithmName)  
      static HkdfSpec hkdfSpec​(byte[] secret, byte[] salt, byte[] info, int desiredLength, java.lang.String algorithmName)  
      • Methods inherited from class java.lang.Object

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

      • HkdfSpec

        public HkdfSpec​(int mode,
                        byte[] secret,
                        byte[] salt,
                        byte[] info,
                        byte[] prk,
                        int desiredLength,
                        java.lang.String algorithmName)
    • Method Detail

      • hkdfSpec

        public static HkdfSpec hkdfSpec​(byte[] secret,
                                        byte[] salt,
                                        byte[] info,
                                        int desiredLength,
                                        java.lang.String algorithmName)
      • hkdfExtractSpec

        public static HkdfSpec hkdfExtractSpec​(byte[] secret,
                                               byte[] salt,
                                               java.lang.String algorithmName)
      • hkdfExpandSpec

        public static HkdfSpec hkdfExpandSpec​(byte[] prk,
                                              byte[] info,
                                              int desiredLength,
                                              java.lang.String algorithmName)