Package org.wildfly.security.sasl.gs2
Class Gs2
java.lang.Object
org.wildfly.security.sasl.gs2.Gs2
Constants and utility methods for the GS2 mechanism family.
- Author:
- Farah Juma
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OidgetMechanismForSaslName(GSSManager gssManager, String saslMechanismName) Get the GSS-API mechanism object identifier that corresponds to the given SASL mechanism name.static StringgetSaslNameForMechanism(Oid mechanismOid) Get the SASL mechanism name that corresponds to the given GSS-API mechanism object identifier.static StringgetSaslNameForMechanism(Oid mechanismOid, boolean plus) Get the SASL mechanism name that corresponds to the given GSS-API mechanism object identifier.
-
Field Details
-
GS2_PREFIX
- See Also:
-
PLUS_SUFFIX
- See Also:
-
GS2_KRB5
- See Also:
-
GS2_KRB5_PLUS
- See Also:
-
SPNEGO
- See Also:
-
SPNEGO_PLUS
- See Also:
-
-
Constructor Details
-
Gs2
public Gs2()
-
-
Method Details
-
getSaslNameForMechanism
Get the SASL mechanism name that corresponds to the given GSS-API mechanism object identifier.- Parameters:
mechanismOid- the object identifier for the GSS-API mechanismplus-trueif the PLUS-variant of the SASL mechanism name should be returned andfalseotherwise- Returns:
- the SASL mechanism name that corresponds to the given object identifier
- Throws:
GSSException- if the given object identifier cannot be mapped to a SASL name
-
getSaslNameForMechanism
Get the SASL mechanism name that corresponds to the given GSS-API mechanism object identifier.- Parameters:
mechanismOid- the object identifier for the GSS-API mechanism- Returns:
- the non-PLUS SASL mechanism name that corresponds to the given object identifier
- Throws:
GSSException- if the given object identifier cannot be mapped to a SASL name
-
getMechanismForSaslName
public static Oid getMechanismForSaslName(GSSManager gssManager, String saslMechanismName) throws GSSException Get the GSS-API mechanism object identifier that corresponds to the given SASL mechanism name.- Parameters:
saslMechanismName- the SASL mechanism name- Returns:
- the object identifier for the GSS-API mechanism that corresponds to the given SASL mechanism name
- Throws:
GSSException- if the given SASL name cannot be mapped to an object identifier
-