Class HybrisLicenceCrypto


  • public class HybrisLicenceCrypto
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean verifyAgainstPublicKey​(Licence licence)
      Tests if the information of this licence is valid.
      • Methods inherited from class java.lang.Object

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

      • HybrisLicenceCrypto

        public HybrisLicenceCrypto()
    • Method Detail

      • verifyAgainstPublicKey

        public boolean verifyAgainstPublicKey​(Licence licence)
        Tests if the information of this licence is valid. This is currently done by checking if the specified signature is valid for the string representation of this licence using the given public key.

        We use the DSA algorithm included in the JDK. The public key must be encoded according to the X509 spec.