Java Key Create getKey(InputStream is)

Here you can find the source of getKey(InputStream is)

Description

get Key

License

Apache License

Declaration

public static Key getKey(InputStream is) 

Method Source Code

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

import java.io.InputStream;
import java.io.ObjectInputStream;

import java.security.Key;

public class Main {

    public static Key getKey(InputStream is) {
        try {/*from w  w  w.  j  a  v a  2s .c o m*/
            ObjectInputStream ois = new ObjectInputStream(is);
            return (Key) ois.readObject();
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        }
    }
}

Related

  1. getKey()
  2. getKey()
  3. getKey()
  4. getKey(byte[] arrayBytesTemp)
  5. getKey(byte[] keyData)
  6. getKey(int size)
  7. getKey(KeyStore keystore, String alias, String password)
  8. getKey(KeyStore keyStore, String password, String orgName)
  9. getKey(KeyStore ks, String alias, String pass)