Package java.security

Interface Key

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long serialVersionUID
      The serialVersionUID to be compatible with JDK1.1.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getAlgorithm()
      Returns the name of the algorithm of this key.
      byte[] getEncoded()
      Returns the encoded form of this key, or null if encoding is not supported by this key.
      String getFormat()
      Returns the name of the format used to encode this key, or null if it can not be encoded.
    • Field Detail

      • serialVersionUID

        static final long serialVersionUID
        The serialVersionUID to be compatible with JDK1.1.
        See Also:
        Constant Field Values
    • Method Detail

      • getAlgorithm

        String getAlgorithm()
        Returns the name of the algorithm of this key. If the algorithm is unknown, null is returned.
        Returns:
        the name of the algorithm of this key or null if the algorithm is unknown.
      • getFormat

        String getFormat()
        Returns the name of the format used to encode this key, or null if it can not be encoded.
        Returns:
        the name of the format used to encode this key, or null if it can not be encoded.
      • getEncoded

        byte[] getEncoded()
        Returns the encoded form of this key, or null if encoding is not supported by this key.
        Returns:
        the encoded form of this key, or null if encoding is not supported by this key.