Java Key Public getPublicBytes(KeyPair keyPair)

Here you can find the source of getPublicBytes(KeyPair keyPair)

Description

get Public Bytes

License

Apache License

Declaration

private static byte[] getPublicBytes(KeyPair keyPair) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.security.KeyPair;

public class Main {
    private static byte[] getPublicBytes(KeyPair keyPair) {
        return keyPair.getPublic().getEncoded();
    }/*from  w  w  w.j  av  a  2s  . com*/
}

Related

  1. getPublic(byte[] encodedKey)
  2. getPublic(byte[] keyBytes)
  3. getPublicDeclaredMethods(Class clz)
  4. getPublicDeclaredMethods(Class clz)
  5. getPublicEncoded(KeyPair kp)
  6. getPublicExponent(PublicKey pubk)