Package com.linecorp.armeria.server.saml
Class SamlUtil
java.lang.Object
com.linecorp.armeria.server.saml.SamlUtil
public final class SamlUtil extends Object
A utility class which helps a user to easily handle a SAML message.
-
Method Summary
Modifier and Type Method Description static org.opensaml.saml.saml2.core.NameID
getNameId(org.opensaml.saml.saml2.core.Response response, SamlNameIdFormat expectedFormat)
Returns aNameID
that its name format equals to the specifiedexpectedFormat
, from theResponse
.static org.opensaml.saml.saml2.core.NameID
getNameId(org.opensaml.saml.saml2.core.Response response, Predicate<org.opensaml.saml.saml2.core.NameID> filter)
Returns aNameID
which is matched to the specifiedfilter
from theResponse
.
-
Method Details
-
getNameId
@Nullable public static org.opensaml.saml.saml2.core.NameID getNameId(org.opensaml.saml.saml2.core.Response response, SamlNameIdFormat expectedFormat)Returns aNameID
that its name format equals to the specifiedexpectedFormat
, from theResponse
. -
getNameId
@Nullable public static org.opensaml.saml.saml2.core.NameID getNameId(org.opensaml.saml.saml2.core.Response response, Predicate<org.opensaml.saml.saml2.core.NameID> filter)Returns aNameID
which is matched to the specifiedfilter
from theResponse
.
-