Class DeveloperSignature


  • public class DeveloperSignature
    extends java.lang.Object
    Class holding the developer signature of an iiziApp.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.UUID developerID
      The developer ID.
      java.lang.String developerName
      The developer name.
      java.lang.String email
      The developer email.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeveloperSignature​(java.lang.String email, java.lang.String name, byte[] did, java.lang.String organizationUnit, java.lang.String organizationName, java.lang.String localityName, java.lang.String stateName, java.lang.String country)
      Constructor to generate code signing certificate.
      DeveloperSignature​(java.security.cert.X509Certificate certificate)
      Constructor from a X.509 certificate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.cert.X509Certificate getCertificate()
      Gets the certificate used for signing the iiziApp Jar file.
      • Methods inherited from class java.lang.Object

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

      • developerID

        public final java.util.UUID developerID
        The developer ID.
      • developerName

        public final java.lang.String developerName
        The developer name.
      • email

        public final java.lang.String email
        The developer email.
    • Constructor Detail

      • DeveloperSignature

        public DeveloperSignature​(java.security.cert.X509Certificate certificate)
        Constructor from a X.509 certificate.
        Parameters:
        certificate - The developer certificate.
        Throws:
        java.lang.NullPointerException - If certificate is null.
        java.lang.IllegalArgumentException - If it is not a valid developer certificate.
      • DeveloperSignature

        public DeveloperSignature​(java.lang.String email,
                                  java.lang.String name,
                                  byte[] did,
                                  java.lang.String organizationUnit,
                                  java.lang.String organizationName,
                                  java.lang.String localityName,
                                  java.lang.String stateName,
                                  java.lang.String country)
                           throws java.lang.Exception
        Constructor to generate code signing certificate.
        Parameters:
        email - The email or user name.
        name - The developer name.
        did - The developer ID.
        organizationUnit -
        organizationName -
        localityName -
        stateName -
        country -
        Throws:
        java.lang.Exception - For errors in strings that won't make it as LDAP or X500Principal.
    • Method Detail

      • getCertificate

        public java.security.cert.X509Certificate getCertificate()
        Gets the certificate used for signing the iiziApp Jar file.
        Returns:
        The certificate, or null if this instance is not created from a certificate.