Class AESCounterRNG.AESKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key
    Enclosing class:
    AESCounterRNG

    private static final class AESCounterRNG.AESKey
    extends java.lang.Object
    implements java.security.Key
    Trivial key implementation for use with AES cipher.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] keyData  
      • Fields inherited from interface java.security.Key

        serialVersionUID
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AESKey​(byte[] keyData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAlgorithm()  
      byte[] getEncoded()  
      java.lang.String getFormat()  
      • Methods inherited from class java.lang.Object

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

      • keyData

        private final byte[] keyData
    • Constructor Detail

      • AESKey

        private AESKey​(byte[] keyData)
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key