Code example for X509CertSelector

Methods: setNameConstraints

0
import java.security.cert.X509CertSelector; 
 
public class SetNameConstraintsEmptySequence { 
 
    public static void main(String[] args) throws Exception {
         X509CertSelector certSel = new X509CertSelector();
         byte[] data = {0x30, 0x00};        // An empty SEQUENCE
         certSel.setNameConstraints(data);
    } 
}