Java Code Examples for sun.security.util.ECUtil#x509EncodeECPublicKey()

The following examples show how to use sun.security.util.ECUtil#x509EncodeECPublicKey() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: P11Key.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
synchronized byte[] getEncodedInternal() {
    token.ensureValid();
    if (encoded == null) {
        fetchValues();
        try {
            return ECUtil.x509EncodeECPublicKey(w, params);
        } catch (InvalidKeySpecException e) {
            throw new ProviderException(e);
        }
    }
    return encoded;
}
 
Example 2
Source File: P11Key.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
synchronized byte[] getEncodedInternal() {
    token.ensureValid();
    if (encoded == null) {
        fetchValues();
        try {
            return ECUtil.x509EncodeECPublicKey(w, params);
        } catch (InvalidKeySpecException e) {
            throw new ProviderException(e);
        }
    }
    return encoded;
}
 
Example 3
Source File: P11Key.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
synchronized byte[] getEncodedInternal() {
    token.ensureValid();
    if (encoded == null) {
        fetchValues();
        try {
            return ECUtil.x509EncodeECPublicKey(w, params);
        } catch (InvalidKeySpecException e) {
            throw new ProviderException(e);
        }
    }
    return encoded;
}
 
Example 4
Source File: P11Key.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
synchronized byte[] getEncodedInternal() {
    token.ensureValid();
    if (encoded == null) {
        fetchValues();
        try {
            return ECUtil.x509EncodeECPublicKey(w, params);
        } catch (InvalidKeySpecException e) {
            throw new ProviderException(e);
        }
    }
    return encoded;
}
 
Example 5
Source File: P11Key.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
synchronized byte[] getEncodedInternal() {
    token.ensureValid();
    if (encoded == null) {
        fetchValues();
        try {
            return ECUtil.x509EncodeECPublicKey(w, params);
        } catch (InvalidKeySpecException e) {
            throw new ProviderException(e);
        }
    }
    return encoded;
}