es.gob.fnmt.policy

## Class KeyManagerPolicy

- java.lang.Object
- - es.gob.fnmt.policy.KeyManagerPolicy

-     public class KeyManagerPolicy
      extends java.lang.Object

  Class to manage the policy user key selection.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `KeyManagerPolicy.Builder` Builder design pattern class.
    `static class` | `KeyManagerPolicy.ExtendedKeyUsage`
    `static class` | `KeyManagerPolicy.KeyUsage` Gets a boolean array representing bits of KeyUsage ::= BIT STRING { digitalSignature (0), nonRepudiation (1), keyEncipherment (2), dataEncipherment (3), keyAgreement (4), keyCertSign (5), cRLSign (6), encipherOnly (7), decipherOnly (8) }

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyManagerPolicy()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `doFilter(java.security.cert.X509Certificate certificate, java.lang.String alias)`
    `void` | `reset()` Erase the configuration.

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

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

- - ### Constructor Detail

    - #### KeyManagerPolicy

          public KeyManagerPolicy()

      Constructor

  - ### Method Detail

    - #### doFilter

          public boolean doFilter(java.security.cert.X509Certificate certificate,
                                  java.lang.String alias)

      Parameters:
        `certificate` - the certificate to filter.
        `alias` - the alias of the certificate to filter.
      Returns:
        true if the certificate satisfies the policy.

    - #### reset

          public void reset()

      Erase the configuration.