src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/CPrivateKey.java
changeset 54827 01fa7f06f806
parent 54639 2cac7d48db4c
equal deleted inserted replaced
54826:4ef4d55a129b 54827:01fa7f06f806
    60     public byte[] getEncoded() {
    60     public byte[] getEncoded() {
    61         return null;
    61         return null;
    62     }
    62     }
    63 
    63 
    64     public String toString() {
    64     public String toString() {
    65         return algorithm + "PrivateKey [size=" + keyLength + " bits, type=" +
    65         if (handles.hCryptKey != 0) {
    66             getKeyType(handles.hCryptKey) + ", container=" +
    66             return algorithm + "PrivateKey [size=" + keyLength + " bits, type=" +
    67             getContainerName(handles.hCryptProv) + "]";
    67                     getKeyType(handles.hCryptKey) + ", container=" +
       
    68                     getContainerName(handles.hCryptProv) + "]";
       
    69         } else {
       
    70             return algorithm + "PrivateKey [size=" + keyLength + " bits, type=CNG]";
       
    71         }
    68     }
    72     }
    69 
    73 
    70     // This class is not serializable
    74     // This class is not serializable
    71     private void writeObject(java.io.ObjectOutputStream out)
    75     private void writeObject(java.io.ObjectOutputStream out)
    72             throws java.io.IOException {
    76             throws java.io.IOException {