public class KeycloakKeySamlExtensionGenerator extends Object implements SamlProtocolExtensionsAwareBuilder.NodeGenerator
| Modifier and Type | Field and Description |
|---|---|
static String |
KC_KEY_INFO_ELEMENT_NAME |
static String |
KEY_ID_ATTRIBUTE_NAME |
static String |
NS_PREFIX |
static String |
NS_URI |
| Constructor and Description |
|---|
KeycloakKeySamlExtensionGenerator(String keyId) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMessageSigningKeyIdFromElement(Element element)
Checks that the given element is indeed a Keycloak extension
KeyInfo element and
returns a content of MessageSigningKeyId attribute in the given element. |
void |
write(XMLStreamWriter writer)
Generate contents of the <samlp:Extensions> tag.
|
public static final String NS_URI
public static final String NS_PREFIX
public static final String KC_KEY_INFO_ELEMENT_NAME
public static final String KEY_ID_ATTRIBUTE_NAME
public KeycloakKeySamlExtensionGenerator(String keyId)
public void write(XMLStreamWriter writer) throws ProcessingException
SamlProtocolExtensionsAwareBuilder.NodeGeneratorwrite in interface SamlProtocolExtensionsAwareBuilder.NodeGeneratorwriter - Writer to use for producing XML outputProcessingException - If any exception failspublic static String getMessageSigningKeyIdFromElement(Element element)
KeyInfo element and
returns a content of MessageSigningKeyId attribute in the given element.element - Element to obtain the key info from.null if the element is unknown or there is MessageSigningKeyId attribute unset,
value of the MessageSigningKeyId attribute otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.