Class Gs2SaslClient

    • Field Detail

      • plus

        private final boolean plus
      • bindingData

        private final byte[] bindingData
      • bindingType

        private final String bindingType
      • mechanism

        private final Oid mechanism
      • gs2HeaderExcludingNonStdFlag

        private org.wildfly.common.bytes.ByteStringBuilder gs2HeaderExcludingNonStdFlag
    • Method Detail

      • createGs2HeaderExcludingNonStdFlag

        private org.wildfly.common.bytes.ByteStringBuilder createGs2HeaderExcludingNonStdFlag()
        Create a GS2 header, excluding the initial gs2-nonstd-flag, where: gs2-header = [gs2-nonstd-flag "," ] gs2-cb-flag "," [gs2-authzid] "," UTF8-1-safe = %x01-2B / %x2D-3C / %x3E-7F UTF8-2 = <as defined in RFC 3629 (STD 63)> UTF8-3 = <as defined in RFC 3629 (STD 63)> UTF8-4 = <as defined in RFC 3629 (STD 63)> UTF8-char-safe = UTF8-1-safe / UTF8-2 / UTF8-3 / UTF8-4 saslname = 1*(UTF8-char-safe / "=2C" / "=3D") gs2-authzid = "a=" saslname gs2-nonstd-flag = "F" cb-name = 1*(ALPHA / DIGIT / "." / "-") gs2-cb-flag = ("p=" cb-name) / "n" / "y"
        Returns:
        the GS2 header, excluding the initial gs2-nonstd-flag
      • modifyInitialContextToken

        private byte[] modifyInitialContextToken​(byte[] token)
                                          throws GSSException
        Modify the given token by removing the initial context token header, if present, and prefix the resulting token with a GS2 header.
        Parameters:
        token - the initial context token
        Returns:
        the modified token
        Throws:
        GSSException - if the given initial context token is invalid
      • doPrivileged

        private static <T> T doPrivileged​(PrivilegedAction<T> action)