Package com.linecorp.armeria.server.saml
Class SamlUtil
java.lang.Object
com.linecorp.armeria.server.saml.SamlUtil
A utility class which helps a user to easily handle a SAML message.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable 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 @Nullable 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 @Nullable 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 @Nullable 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
.
-