Class SEPublicKeyImpl

  • All Implemented Interfaces:
    SEPublicKey

    public class SEPublicKeyImpl
    extends java.lang.Object
    implements SEPublicKey
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SEPublicKeyImpl​(int _type, int _instance, byte[] _encoded)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] encodePublicKey()
      Gets a generic encoded form that includes type identification information.
      byte[] encodeRawPublicKey()
      Raw encoding of the specific key type
      boolean equals​(java.lang.Object other)
      Overridden to perform equality based on public key
      int getInstance()  
      int getType()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • type

        private int type
      • instance

        private int instance
      • encoded

        private byte[] encoded
      • hashcode

        private int hashcode
    • Constructor Detail

      • SEPublicKeyImpl

        protected SEPublicKeyImpl​(int _type,
                                  int _instance,
                                  byte[] _encoded)
    • Method Detail

      • encodePublicKey

        public byte[] encodePublicKey()
        Description copied from interface: SEPublicKey
        Gets a generic encoded form that includes type identification information. So don't treat this as a raw encoding as it can only sensibly be used to later import via SESecurityManager.decodePublicKey
        Specified by:
        encodePublicKey in interface SEPublicKey
        Returns:
      • encodeRawPublicKey

        public byte[] encodeRawPublicKey()
        Description copied from interface: SEPublicKey
        Raw encoding of the specific key type
        Specified by:
        encodeRawPublicKey in interface SEPublicKey
        Returns:
      • equals

        public boolean equals​(java.lang.Object other)
        Description copied from interface: SEPublicKey
        Overridden to perform equality based on public key
        Specified by:
        equals in interface SEPublicKey
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface SEPublicKey
        Overrides:
        hashCode in class java.lang.Object