private void setSubjectUniqueId ( Object val ) throws CertificateException { if ( version . compare ( CertificateVersion . V2 ) < 0 ) { throw new CertificateException ( "Invalid version" ) ; } if ( ! ( val instanceof UniqueIdentity ) ) { throw new CertificateException ( "SubjectUniqueId class type invalid." ) ; } subjectUniqueId = ( UniqueIdentity ) val ; }
Set the Subject Unique Identity in the certificate .