예제 #1
0
  /**
   * Test method for {@link
   * org.geoserver.security.iride.util.IrideSecurityUtils#isValidIrideIdentity(java.lang.String)}.
   */
  @Test
  public void testIsValidIrideIdentity() {
    final String value =
        "AAAAAA00B77B000F/CSI PIEMONTE/DEMO 20/IPA/20160531113948/2/1IQssTaf4vNMa66qU52m7g==";

    LOGGER.entering(this.getClass().getName(), "testIsValidIrideIdentity", value);
    try {
      final boolean result = IrideSecurityUtils.isValidIrideIdentity(value);

      assertThat(result, is(true));
    } finally {
      LOGGER.exiting(this.getClass().getName(), "testIsValidIrideIdentity");
    }
  }
예제 #2
0
  /**
   * Test method for {@link
   * org.geoserver.security.iride.util.IrideSecurityUtils#isValidIrideIdentity(java.lang.String)}.
   */
  @Test
  public void testIsValidIrideIdentityWithComplexMacToken() {
    final String value =
        "AAAAAA00A11D000L/CSI PIEMONTE/DEMO 23/IPA/20150223095441/2//VZjBdhZTwU+/7AUMNSHjQ==";

    LOGGER.entering(
        this.getClass().getName(), "testIsValidIrideIdentityWithComplexMacToken", value);
    try {
      final boolean result = IrideSecurityUtils.isValidIrideIdentity(value);

      assertThat(result, is(true));
    } finally {
      LOGGER.exiting(this.getClass().getName(), "testIsValidIrideIdentityWithComplexMacToken");
    }
  }
예제 #3
0
  /**
   * Test method for {@link
   * org.geoserver.security.iride.util.IrideSecurityUtils#isValidIrideIdentity(java.lang.String)}.
   */
  @Test
  public void testIsValidIrideIdentityWithRealisticDigitalIdentity() {
    final String value =
        "NNRLSN69P26L570X/Aldesino/Innerkofler/IPA/20160531113948/2//VZjBdhZTwU+/7AU0A8HjQ==";

    LOGGER.entering(
        this.getClass().getName(), "testIsValidIrideIdentityWithRealisticDigitalIdentity", value);
    try {
      final boolean result = IrideSecurityUtils.isValidIrideIdentity(value);

      assertThat(result, is(true));
    } finally {
      LOGGER.exiting(
          this.getClass().getName(), "testIsValidIrideIdentityWithRealisticDigitalIdentity");
    }
  }