Java Code Examples for sun.security.util.DerValue#tag_GeneralString()

The following examples show how to use sun.security.util.DerValue#tag_GeneralString() . 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: KerberosString.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 2
Source File: KerberosString.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 3
Source File: KerberosString.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 4
Source File: KerberosString.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 5
Source File: KerberosString.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 6
Source File: KerberosString.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 7
Source File: KerberosString.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 8
Source File: KerberosString.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 9
Source File: KerberosString.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public KerberosString(DerValue der) throws IOException {
    if (der.tag != DerValue.tag_GeneralString) {
        throw new IOException(
            "KerberosString's tag is incorrect: " + der.tag);
    }
    s = new String(der.getDataBytes(), MSNAME?"UTF8":"ASCII");
}
 
Example 10
Source File: KerberosString.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 11
Source File: KerberosString.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 12
Source File: KerberosString.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 13
Source File: KerberosString.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 14
Source File: KerberosString.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 15
Source File: KerberosString.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 16
Source File: KerberosString.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 17
Source File: KerberosString.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 18
Source File: KerberosString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 19
Source File: KerberosString.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}
 
Example 20
Source File: KerberosString.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public DerValue toDerValue() throws IOException {
    // No need to cache the result since this method is
    // only called once.
    return new DerValue(DerValue.tag_GeneralString,
            s.getBytes(MSNAME?"UTF8":"ASCII"));
}