Package com.iizix.license
Class DeveloperSignature
- java.lang.Object
- com.iizix.license.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.
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.