Java Code Examples for sun.security.krb5.Asn1Exception#getMessage()

The following examples show how to use sun.security.krb5.Asn1Exception#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 2
Source File: KeyImpl.java    From Java8CN with Apache License 2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 3
Source File: KeyImpl.java    From Java8CN with Apache License 2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 4
Source File: KeyImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 5
Source File: KeyImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 6
Source File: KeyImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 7
Source File: KeyImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 8
Source File: KeyImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 9
Source File: KeyImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 10
Source File: KeyImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 11
Source File: KeyImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 12
Source File: KeyImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 13
Source File: KeyImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 14
Source File: KeyImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 15
Source File: KeyImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 16
Source File: KeyImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}
 
Example 17
Source File: KeyImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 18
Source File: KeyImpl.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 19
Source File: KeyImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @serialData this {@code KeyImpl} is serialized by
 * writing out the ASN1 Encoded bytes of the encryption key.
 * The ASN1 encoding is defined in RFC4120 and as  follows:
 * EncryptionKey   ::= SEQUENCE {
 *          keytype    [0] Int32 -- actually encryption type --,
 *          keyvalue   [1] OCTET STRING
 * }
 */
private void writeObject(ObjectOutputStream ois)
            throws IOException {
    if (destroyed) {
       throw new IOException("This key is no longer valid");
    }

    try {
       ois.writeObject((new EncryptionKey(keyType, keyBytes)).asn1Encode());
    } catch (Asn1Exception ae) {
       throw new IOException(ae.getMessage());
    }
}
 
Example 20
Source File: KeyImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private void readObject(ObjectInputStream ois)
            throws IOException, ClassNotFoundException {
    try {
        EncryptionKey encKey = new EncryptionKey(new
                                 DerValue((byte[])ois.readObject()));
        keyType = encKey.getEType();
        keyBytes = encKey.getBytes();
    } catch (Asn1Exception ae) {
        throw new IOException(ae.getMessage());
    }
}