Code example for CertPathTrustManagerParameters

Methods: getParameters

0
    /** 
     * javax.net.ssl.CertPathTrustManagerParameters#getParameters() 
     */ 
    public void test_getParameters() { 
        CertPathParameters parameters = new MyCertPathParameters();
        CertPathTrustManagerParameters p = new CertPathTrustManagerParameters(
                parameters);
        if (!(p.getParameters() instanceof MyCertPathParameters)) {
            fail("incorrect parameters");
        } 
        assertNotSame("Parameters were cloned incorrectly",
                parameters, p.getParameters());
    } 
} 
 
class MyCertPathParameters implements CertPathParameters {
    public Object clone() {
        return new MyCertPathParameters(); 
    } 
}