Java 8 DSAPublicKeySpec - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DSAPublicKeySpec class.

This code example shows how to use the following methods:getG, getP, getQ, getY
        Key key,
        Class spec)
        throws InvalidKeySpecException 
    { 
        if (spec.isAssignableFrom(DSAPublicKeySpec.class) && key instanceof DSAPublicKey)
        { 
            DSAPublicKey k = (DSAPublicKey)key;
 
            return new DSAPublicKeySpec(k.getY(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
        else if (spec.isAssignableFrom(DSAPrivateKeySpec.class) && key instanceof java.security.interfaces.DSAPrivateKey)
        { 
            java.security.interfaces.DSAPrivateKey k = (java.security.interfaces.DSAPrivateKey)key;
 
            return new DSAPrivateKeySpec(k.getX(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
 
        return super.engineGetKeySpec(key, spec);
    } 
 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private transient DSAParams       dsaSpec;
 
    BCDSAPublicKey( 
        DSAPublicKeySpec spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    BCDSAPublicKey( 
        DSAPublicKey key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    BCDSAPublicKey( 
        DSAPublicKeyParameters params)
    { 
        this.y = params.getY();
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private DSAParams       dsaSpec;
 
    JDKDSAPublicKey( 
        DSAPublicKeySpec    spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKey    key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKeyParameters  params)
    { 
        this.y = params.getY();
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
        Key key,
        Class spec)
        throws InvalidKeySpecException
    { 
        if (spec.isAssignableFrom(DSAPublicKeySpec.class) && key instanceof DSAPublicKey)
        { 
            DSAPublicKey k = (DSAPublicKey)key;
 
            return new DSAPublicKeySpec(k.getY(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
        else if (spec.isAssignableFrom(DSAPrivateKeySpec.class) && key instanceof java.security.interfaces.DSAPrivateKey)
        { 
            java.security.interfaces.DSAPrivateKey k = (java.security.interfaces.DSAPrivateKey)key;
 
            return new DSAPrivateKeySpec(k.getX(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
 
        return super.engineGetKeySpec(key, spec);
    } 
 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private transient DSAParams       dsaSpec;
 
    BCDSAPublicKey( 
        DSAPublicKeySpec spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    BCDSAPublicKey( 
        DSAPublicKey key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    BCDSAPublicKey( 
        DSAPublicKeyParameters params)
    { 
        this.y = params.getY();
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
        Key key,
        Class spec)
        throws InvalidKeySpecException 
    { 
        if (spec.isAssignableFrom(DSAPublicKeySpec.class) && key instanceof DSAPublicKey)
        { 
            DSAPublicKey k = (DSAPublicKey)key;
 
            return new DSAPublicKeySpec(k.getY(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
        else if (spec.isAssignableFrom(DSAPrivateKeySpec.class) && key instanceof java.security.interfaces.DSAPrivateKey)
        { 
            java.security.interfaces.DSAPrivateKey k = (java.security.interfaces.DSAPrivateKey)key;
 
            return new DSAPrivateKeySpec(k.getX(), k.getParams().getP(), k.getParams().getQ(), k.getParams().getG());
        } 
 
        return super.engineGetKeySpec(key, spec);
    } 
 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private DSAParams       dsaSpec;
 
    JDKDSAPublicKey( 
        DSAPublicKeySpec    spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKey    key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKeyParameters  params)
    { 
        this.y = params.getY();
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private transient DSAParams       dsaSpec;
 
    BCDSAPublicKey( 
        DSAPublicKeySpec spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    BCDSAPublicKey( 
        DSAPublicKey key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    BCDSAPublicKey( 
        DSAPublicKeyParameters params)
    { 
        this.y = params.getY();
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private DSAParams       dsaSpec;
 
    JDKDSAPublicKey( 
        DSAPublicKeySpec    spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKey    key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKeyParameters  params)
    { 
        this.y = params.getY();
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getG, getP, getQ, getY
    private DSAParams       dsaSpec;
 
    JDKDSAPublicKey( 
        DSAPublicKeySpec    spec)
    { 
        this.y = spec.getY();
        this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG());
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKey    key)
    { 
        this.y = key.getY();
        this.dsaSpec = key.getParams();
    } 
 
    JDKDSAPublicKey( 
        DSAPublicKeyParameters  params)
    { 
        this.y = params.getY();
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Java 8 DSAPublicKeySpec Methods: