Modifier and Type | Method and Description |
---|---|
protected LogoutRequestType |
SAMLIdentityProvider.buildLogoutRequest(UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
String singleLogoutServiceUrl,
SamlProtocolExtensionsAwareBuilder.NodeGenerator... extensions) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
SamlService.artifactResolve(ArtifactResolveType artifactResolveMessage,
SAMLDocumentHolder artifactResolveHolder)
Takes an artifact resolve message and returns the artifact response, if the artifact is found belonging to a session
of the issuer.
|
protected String |
SamlProtocol.buildArtifactAndStoreResponse(SAML2Object saml2Object,
AuthenticatedClientSessionModel clientSessionModel) |
protected String |
SamlProtocol.buildArtifactAndStoreResponse(SAML2Object statusResponseType,
UserSessionModel userSession) |
protected javax.ws.rs.core.Response |
SamlProtocol.buildArtifactAuthenticatedResponse(AuthenticatedClientSessionModel clientSession,
String redirectUri,
SAML2Object samlDocument,
JaxrsSAML2BindingBuilder bindingBuilder)
This method, instead of sending the actual response with the token sends
the artifact message via post or redirect.
|
static ArtifactResponseType |
SamlProtocolUtils.buildArtifactResponse(Document document)
Takes a saml document and inserts it as a body of ArtifactResponseType
|
static ArtifactResponseType |
SamlProtocolUtils.buildArtifactResponse(SAML2Object samlObject,
NameIDType issuer)
Takes a saml object (an object that will be part of resulting ArtifactResponse), and inserts it as the body of
an ArtifactResponse.
|
static ArtifactResponseType |
SamlProtocolUtils.buildArtifactResponse(SAML2Object samlObject,
NameIDType issuer,
URI statusCode)
Takes a saml object (an object that will be part of resulting ArtifactResponse), and inserts it as the body of
an ArtifactResponse.
|
protected javax.ws.rs.core.Response |
SamlProtocol.buildAuthenticatedResponse(AuthenticatedClientSessionModel clientSession,
String redirectUri,
Document samlDocument,
JaxrsSAML2BindingBuilder bindingBuilder) |
protected javax.ws.rs.core.Response |
SamlProtocol.buildErrorResponse(boolean isPostBinding,
String destination,
JaxrsSAML2BindingBuilder binding,
Document document) |
protected javax.ws.rs.core.Response |
SamlProtocol.buildLogoutArtifactResponse(UserSessionModel userSession,
String redirectUri,
StatusResponseType statusResponseType,
JaxrsSAML2BindingBuilder bindingBuilder)
This method, instead of sending the actual response with the token, sends
the artifact message via post or redirect.
|
protected javax.ws.rs.core.Response |
SamlProtocol.buildLogoutResponse(UserSessionModel userSession,
String logoutBindingUri,
SAML2LogoutResponseBuilder builder,
JaxrsSAML2BindingBuilder binding) |
static Document |
SamlProtocolUtils.convert(ArtifactResponseType responseType)
Convert a SAML2 ArtifactResponse into a Document
|
protected LogoutRequestType |
SamlProtocol.createLogoutRequest(String logoutUrl,
AuthenticatedClientSessionModel clientSession,
ClientModel client,
SamlProtocolExtensionsAwareBuilder.NodeGenerator... extensions) |
javax.ws.rs.core.Response |
JaxrsSAML2BindingBuilder.PostBindingBuilder.request(String actionUrl) |
javax.ws.rs.core.Response |
JaxrsSAML2BindingBuilder.RedirectBindingBuilder.request(String redirect) |
javax.ws.rs.core.Response |
JaxrsSAML2BindingBuilder.PostBindingBuilder.response(String actionUrl) |
javax.ws.rs.core.Response |
JaxrsSAML2BindingBuilder.RedirectBindingBuilder.response(String redirectUri) |
Modifier and Type | Method and Description |
---|---|
String |
BaseSAML2BindingBuilder.base64Encoded(Document document) |
Document |
SAML2LogoutRequestBuilder.buildDocument() |
Document |
SAML2LoginResponseBuilder.buildDocument(ResponseType responseType) |
String |
BaseSAML2BindingBuilder.buildHtmlPostResponse(Document responseDoc,
String actionUrl,
boolean asRequest) |
StatusResponseType |
SAML2LogoutResponseBuilder.buildModel() |
ResponseType |
SAML2LoginResponseBuilder.buildModel() |
LogoutRequestType |
SAML2LogoutRequestBuilder.createLogoutRequest() |
String |
BaseSAML2BindingBuilder.BasePostBindingBuilder.encoded() |
URI |
BaseSAML2BindingBuilder.generateRedirectUri(String samlParameterName,
String redirectUri,
Document document) |
URI |
BaseSAML2BindingBuilder.BaseRedirectBindingBuilder.generateURI(String redirectUri,
boolean asRequest) |
String |
BaseSAML2BindingBuilder.BasePostBindingBuilder.getHtmlRequest(String actionUrl) |
String |
BaseSAML2BindingBuilder.BasePostBindingBuilder.getHtmlResponse(String actionUrl) |
static String |
BaseSAML2BindingBuilder.getSAMLResponse(Document responseDoc) |
URI |
BaseSAML2BindingBuilder.BaseRedirectBindingBuilder.requestURI(String actionUrl) |
URI |
BaseSAML2BindingBuilder.BaseRedirectBindingBuilder.responseURI(String actionUrl) |
Modifier and Type | Method and Description |
---|---|
void |
PicketLinkLogger.authenticationManagerError(ConfigurationException e) |
void |
DefaultPicketLinkLogger.authenticationManagerError(ConfigurationException e) |
void |
PicketLinkLogger.authorizationManagerError(ConfigurationException e) |
void |
DefaultPicketLinkLogger.authorizationManagerError(ConfigurationException e) |
Modifier and Type | Class and Description |
---|---|
class |
TrustKeyConfigurationException
ConfigurationException in the TrustKeyManager
|
Modifier and Type | Method and Description |
---|---|
static Document |
DocumentUtil.createDocument()
Create a new document
|
static Document |
DocumentUtil.getDocument(File file)
Get Document from a file
|
static Document |
DocumentUtil.getDocument(InputStream is)
Get Document from an inputstream
|
static Document |
DocumentUtil.getDocument(Reader reader)
Parse a document from a reader
|
static Document |
DocumentUtil.getDocument(String docString)
Parse a document from the string
|
static String |
DocumentUtil.getDocumentAsString(Document signedDoc)
Marshall a document into a String
|
static InputStream |
DocumentUtil.getNodeAsStream(Node node)
Stream a DOM Node as an input stream
|
static String |
DocumentUtil.getNodeAsString(Node node)
Marshall a DOM Node into a String
|
static InputStream |
DocumentUtil.getSourceAsStream(Source source)
Get the
Source as an InputStream |
static Transformer |
TransformerUtil.getStaxSourceToDomResultTransformer()
Get the Custom Stax Source to DOM result transformer that has been written to get over the JDK transformer bugs
(JDK6) as well as the issue of Xalan installing its Transformer (which does not support stax).
|
static Transformer |
TransformerUtil.getTransformer()
Get the Default Transformer
|
Modifier and Type | Method and Description |
---|---|
static Document |
SAML2Request.convert(RequestAbstractType rat)
Return the DOM object
|
static Document |
SAML2Request.convert(ResponseType responseType)
Convert a SAML2 Response into a Document
|
AuthnRequestType |
SAML2Request.createAuthnRequestType(String id,
String assertionConsumerURL,
String destination,
String issuerValue)
Create authentication request with protocolBinding defaulting to POST
|
AuthnRequestType |
SAML2Request.createAuthnRequestType(String id,
String assertionConsumerURL,
String destination,
String issuerValue,
URI protocolBinding)
Create an authentication request
|
static LogoutRequestType |
SAML2Request.createLogoutRequest(NameIDType issuer)
Create a Logout Request
|
AuthnRequestType |
SAML2Request.getAuthnRequestType(InputStream is)
Get the AuthnRequestType from an input stream
|
AuthnRequestType |
SAML2Request.getAuthnRequestType(String fileName)
Get AuthnRequestType from a file
|
RequestAbstractType |
SAML2Request.getRequestType(InputStream is)
Get a Request Type from Input Stream
|
static SAMLDocumentHolder |
SAML2Request.getSAML2ObjectFromStream(InputStream is)
Get the Underlying SAML2Object from the input stream
|
Modifier and Type | Method and Description |
---|---|
Document |
SAML2Response.convert(EncryptedElementType encryptedElementType)
Convert an EncryptedElement into a Document
|
Document |
SAML2Response.convert(StatusResponseType responseType)
Convert a SAML2 Response into a Document
|
ResponseType |
SAML2Response.createResponseType(String ID,
IssuerInfoHolder issuerInfo,
Element encryptedAssertion)
Create a ResponseType
|
void |
SAML2Response.createTimedConditions(AssertionType assertion,
long durationInMilis)
Add validity conditions to the SAML2 Assertion
|
AssertionType |
SAML2Response.getAssertionType(InputStream is)
Read an assertion from an input stream
|
EncryptedAssertionType |
SAML2Response.getEncryptedAssertion(InputStream is)
Get an encrypted assertion from the stream
|
ResponseType |
SAML2Response.getResponseType(InputStream is)
Read a ResponseType from an input stream
|
SAML2Object |
SAML2Response.getSAML2ObjectFromStream(InputStream is)
Read a
SAML2Object from an input stream |
Modifier and Type | Method and Description |
---|---|
SAML11AssertionType |
SAML11AssertionParser.fromElement(Element element) |
Modifier and Type | Method and Description |
---|---|
static void |
AssertionUtil.createSAML11TimedConditions(SAML11AssertionType assertion,
long durationInMilis,
long clockSkew)
Add validity conditions to the SAML2 Assertion
|
static void |
AssertionUtil.createTimedConditions(AssertionType assertion,
long durationInMilis)
Add validity conditions to the SAML2 Assertion
|
static void |
AssertionUtil.createTimedConditions(AssertionType assertion,
long durationInMilis,
long clockSkew)
Add validity conditions to the SAML2 Assertion
|
static Element |
AssertionUtil.decryptAssertion(SAMLDocumentHolder holder,
ResponseType responseType,
PrivateKey privateKey)
This method modifies the given responseType, and replaces the encrypted assertion with a decrypted version.
|
static AssertionType |
AssertionUtil.getAssertion(SAMLDocumentHolder holder,
ResponseType responseType,
PrivateKey privateKey) |
static X509Certificate |
SAMLMetadataUtil.getCertificate(KeyDescriptorType keyDescriptor)
Get the
X509Certificate from the KeyInfo |
static boolean |
AssertionUtil.hasExpired(AssertionType assertion)
Check whether the assertion has expired.
|
static boolean |
AssertionUtil.hasExpired(AssertionType assertion,
long clockSkewInMilis)
Verify whether the assertion has expired.
|
static boolean |
AssertionUtil.hasExpired(SAML11AssertionType assertion)
Check whether the assertion has expired
|
static boolean |
AssertionUtil.hasExpired(SAML11AssertionType assertion,
long clockSkewInMilis)
Verify whether the assertion has expired.
|
Modifier and Type | Method and Description |
---|---|
static Element |
XMLEncryptionUtil.encryptElementInDocument(Document document,
PublicKey publicKey,
SecretKey secretKey,
int keySize,
QName wrappingElementQName,
boolean addEncryptedKeyInKeyInfo)
Encrypt the root document element inside a Document.
|
Copyright © 2021 JBoss by Red Hat. All rights reserved.