Java Key Public getPublicExponent(PublicKey pubk)

Here you can find the source of getPublicExponent(PublicKey pubk)

Description

get Public Exponent

License

Open Source License

Declaration

public static byte[] getPublicExponent(PublicKey pubk) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import java.security.PublicKey;

import java.security.interfaces.RSAPublicKey;

public class Main {
    public static byte[] getPublicExponent(PublicKey pubk) {
        RSAPublicKey rsaKey = (RSAPublicKey) pubk;

        return rsaKey.getPublicExponent().toByteArray();
    }/*from  w  ww  .ja v a 2s.  c  o  m*/
}

Related

  1. getPublic(byte[] keyBytes)
  2. getPublicBytes(KeyPair keyPair)
  3. getPublicDeclaredMethods(Class clz)
  4. getPublicDeclaredMethods(Class clz)
  5. getPublicEncoded(KeyPair kp)
  6. getPublicKey()
  7. getPublicKey(BigInteger modulus, BigInteger exponent)
  8. getPublicKey(byte[] der)
  9. getPublicKey(byte[] keyBytes, String algorithm)