Search in sources :

Example 6 with PolicyFactory

use of org.demoiselle.signer.policy.engine.factory.PolicyFactory in project signer by demoiselle.

the class PolicyFactoryTest method testLoadLPA.

/**
 * Test of loadLPA method, of class PolicyFactory.
 */
@SuppressWarnings("deprecation")
public // @Test
void testLoadLPA() {
    PolicyFactory factory = PolicyFactory.getInstance();
    logger.info(factory.loadLPA().toString());
}
Also used : PolicyFactory(org.demoiselle.signer.policy.engine.factory.PolicyFactory)

Example 7 with PolicyFactory

use of org.demoiselle.signer.policy.engine.factory.PolicyFactory in project signer by demoiselle.

the class PolicyFactoryTest method testLoadLPAv2.

/**
 * Test of loadLPAv2 method, of class PolicyFactory.
 */
@SuppressWarnings("deprecation")
public // @Test
void testLoadLPAv2() {
    PolicyFactory factory = PolicyFactory.getInstance();
    logger.info(factory.loadLPAv2().toString());
}
Also used : PolicyFactory(org.demoiselle.signer.policy.engine.factory.PolicyFactory)

Example 8 with PolicyFactory

use of org.demoiselle.signer.policy.engine.factory.PolicyFactory in project signer by demoiselle.

the class PolicyFactoryTest method testLoadCades.

@Test
public void testLoadCades() {
    PolicyFactory factory = PolicyFactory.getInstance();
    logger.info(factory.loadLPACAdES().toString());
}
Also used : PolicyFactory(org.demoiselle.signer.policy.engine.factory.PolicyFactory) Test(org.junit.Test)

Aggregations

PolicyFactory (org.demoiselle.signer.policy.engine.factory.PolicyFactory)8 SignaturePolicy (org.demoiselle.signer.policy.engine.asn1.etsi.SignaturePolicy)3 SimpleDateFormat (java.text.SimpleDateFormat)1 Date (java.util.Date)1 GregorianCalendar (java.util.GregorianCalendar)1 GeneralizedTime (org.demoiselle.signer.policy.engine.asn1.GeneralizedTime)1 PolicyException (org.demoiselle.signer.policy.engine.exception.PolicyException)1 Policies (org.demoiselle.signer.policy.engine.factory.PolicyFactory.Policies)1 Test (org.junit.Test)1