public static SamlIdPAuthenticationContext decode(final String data) {
        val decoded = EncodingUtils.decodeBase64(data);
        return SerializationUtils.deserialize(decoded, SamlIdPAuthenticationContext.class);
    }
Decode.

@param data the data
@return the saml id p authentication context
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/authentication/SamlIdPAuthenticationContext.java