Code example for KeyFactory

Methods: generatePublic

0
        return (RSAPublicKey) generatePublicKey(rsakf, spec);
    } 
 
    private PublicKey generatePublicKey(KeyFactory kf, KeySpec keyspec) {
        try { 
            return kf.generatePublic(keyspec);
        } catch (InvalidKeySpecException e) {
            //@@@ should dump exception to log 
            return null; 
        } 
    } 
 
    public boolean equals(Object obj) {
        if (this == obj) {
            return true; 
        } 
        if (!(obj instanceof KeyValue)) {
            return false; 
        } 
        try {