Example usage for java.security PrivateKey PrivateKey

List of usage examples for java.security PrivateKey PrivateKey

Introduction

In this page you can find the example usage for java.security PrivateKey PrivateKey.

Prototype

PrivateKey

Source Link

Usage

From source file:com.thoughtworks.go.security.Registration.java

private static PrivateKey emptyPrivateKey() {
    return new PrivateKey() {
        public String getAlgorithm() {
            return null;
        }//from  w  w  w  .ja v a  2s  . c  o  m

        public String getFormat() {
            return null;
        }

        public byte[] getEncoded() {
            return new byte[0];
        }
    };
}