org.keycloak.saml.processing.api.util

## Class KeyInfoTools

- java.lang.Object
- - org.keycloak.saml.processing.api.util.KeyInfoTools

-     public class KeyInfoTools
      extends Object

  Tools for `KeyInfo` object manipulation.
  Author:
    hmlnarik

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyInfoTools()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | `getContent(Iterable<?> objects, Class<T> clazz)` Returns the first object of the given class from the given Iterable.
    `static KeyName` | `getKeyName(KeyInfo keyInfo)`
    `static X509Certificate` | `getX509Certificate(KeyInfo keyInfo)`
    `static X509Data` | `getX509Data(KeyInfo keyInfo)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyInfoTools

          public KeyInfoTools()

  - ### Method Detail

    - #### getContent

          public static <T> T getContent(Iterable<?> objects,
                                         Class<T> clazz)

      Returns the first object of the given class from the given Iterable.
      Type Parameters:
        `T` -
      Parameters:
        `objects` -
        `clazz` -
      Returns:
        The object or `null` if not found.

    - #### getKeyName

          public static KeyName getKeyName(KeyInfo keyInfo)

    - #### getX509Data

          public static X509Data getX509Data(KeyInfo keyInfo)

    - #### getX509Certificate

          public static X509Certificate getX509Certificate(KeyInfo keyInfo)

Copyright © 2020 JBoss by Red Hat. All rights reserved.