test_class.declarator: RID_ID = "rid"
test_class.modifier: private static final
test_class.original_string: private static final String RID_ID = "rid";
test_class.type: String
test_class.var_name: RID_ID
test_class.declarator: REPORT_SPECIFIER_ID = "reportSpecifierId"
test_class.modifier: private static final
test_class.original_string: private static final String REPORT_SPECIFIER_ID = "reportSpecifierId";
test_class.type: String
test_class.var_name: REPORT_SPECIFIER_ID
test_class.declarator: REPORT_REQUEST_ID = "reportRequestId"
test_class.modifier: private static final
test_class.original_string: private static final String REPORT_REQUEST_ID = "reportRequestId";
test_class.type: String
test_class.var_name: REPORT_REQUEST_ID
test_class.declarator: REPORT_ID = "reportId"
test_class.modifier: private static final
test_class.original_string: private static final String REPORT_ID = "reportId";
test_class.type: String
test_class.var_name: REPORT_ID
test_class.declarator: OADR20b_PROFILE_NAME = "2.0b"
test_class.modifier: private static final
test_class.original_string: private static final String OADR20b_PROFILE_NAME = "2.0b";
test_class.type: String
test_class.var_name: OADR20b_PROFILE_NAME
test_class.declarator: VTN_ID = "vtn"
test_class.modifier: private static final
test_class.original_string: private static final String VTN_ID = "vtn";
test_class.type: String
test_class.var_name: VTN_ID
test_class.declarator: REGISTRATION_ID = "registrationId"
test_class.modifier: private static final
test_class.original_string: private static final String REGISTRATION_ID = "registrationId";
test_class.type: String
test_class.var_name: REGISTRATION_ID
test_class.declarator: EVENT_ID = "eventId"
test_class.modifier: private static final
test_class.original_string: private static final String EVENT_ID = "eventId";
test_class.type: String
test_class.var_name: EVENT_ID
test_class.declarator: OPT_ID = "optId"
test_class.modifier: private static final
test_class.original_string: private static final String OPT_ID = "optId";
test_class.type: String
test_class.var_name: OPT_ID
test_class.declarator: NONCE = "nonce"
test_class.modifier: private static final
test_class.original_string: private static final String NONCE = "nonce";
test_class.type: String
test_class.var_name: NONCE
test_class.declarator: VEN_ID = "venId"
test_class.modifier: private static final
test_class.original_string: private static final String VEN_ID = "venId";
test_class.type: String
test_class.var_name: VEN_ID
test_class.declarator: REQUEST_ID = "REQ_12345"
test_class.modifier: private static final
test_class.original_string: private static final String REQUEST_ID = "REQ_12345";
test_class.type: String
test_class.var_name: REQUEST_ID
test_class.declarator: PRIVATE_KEY_FILE_PATH = "src/test/resources/rsa/TEST_RSA_VTN_17011882657_privkey.pem"
test_class.modifier: private static final
test_class.original_string: private static final String PRIVATE_KEY_FILE_PATH = "src/test/resources/rsa/TEST_RSA_VTN_17011882657_privkey.pem";
test_class.type: String
test_class.var_name: PRIVATE_KEY_FILE_PATH
test_class.declarator: CERTIFICATE_FILE_PATH = "src/test/resources/rsa/TEST_RSA_VTN_17011882657_cert.pem"
test_class.modifier: private static final
test_class.original_string: private static final String CERTIFICATE_FILE_PATH = "src/test/resources/rsa/TEST_RSA_VTN_17011882657_cert.pem";
test_class.type: String
test_class.var_name: CERTIFICATE_FILE_PATH
test_class.declarator: privateKey
test_class.modifier: private
test_class.original_string: private PrivateKey privateKey;
test_class.type: PrivateKey
test_class.var_name: privateKey
test_class.declarator: certificate
test_class.modifier: private
test_class.original_string: private X509Certificate certificate;
test_class.type: X509Certificate
test_class.var_name: certificate
test_class.declarator: jaxbContext
test_class.modifier: private
test_class.original_string: private Oadr20bJAXBContext jaxbContext;
test_class.type: Oadr20bJAXBContext
test_class.var_name: jaxbContext
test_class.file: OpenADRModel20b/src/test/java/com/avob/openadr/model/oadr20b/xmlsignature/OadrXMLSignatureHandlerTest.java
test_class.identifier: OadrXMLSignatureHandlerTest
test_case.body: @Test
  	public void testInvalidSign() {
  
  		boolean exception = false;
  		try {
  			OadrXMLSignatureHandler.sign("moauiccool", privateKey, certificate, NONCE, 0L);
  		} catch (Oadr20bXMLSignatureException e) {
  			exception = true;
  		}
  		assertTrue(exception);
  
  	}
test_case.class_method_signature: OadrXMLSignatureHandlerTest.testInvalidSign()
test_case.full_signature: @Test public void testInvalidSign()
test_case.identifier: testInvalidSign
test_case.invocations: sign assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidSign()
focal_class.declarator: RSA_SHA256_ALGORITHM = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
focal_class.modifier: public static final
focal_class.original_string: public static final String RSA_SHA256_ALGORITHM = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
focal_class.type: String
focal_class.var_name: RSA_SHA256_ALGORITHM
focal_class.declarator: ECDSA_SHA256_ALGORITHM = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"
focal_class.modifier: public static final
focal_class.original_string: public static final String ECDSA_SHA256_ALGORITHM = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
focal_class.type: String
focal_class.var_name: ECDSA_SHA256_ALGORITHM
focal_class.declarator: jaxbContext
focal_class.modifier: private static final
focal_class.original_string: private static final Oadr20bJAXBContext jaxbContext;
focal_class.type: Oadr20bJAXBContext
focal_class.var_name: jaxbContext
focal_class.declarator: replayProtectContext
focal_class.modifier: private static final
focal_class.original_string: private static final JAXBContext replayProtectContext;
focal_class.type: JAXBContext
focal_class.var_name: replayProtectContext
focal_class.declarator: SIGNEDOBJECT_PAYLOAD_ID = "signedObject"
focal_class.modifier: private static final
focal_class.original_string: private static final String SIGNEDOBJECT_PAYLOAD_ID = "signedObject";
focal_class.type: String
focal_class.var_name: SIGNEDOBJECT_PAYLOAD_ID
focal_class.declarator: SIGNATUREOBJECT_PAYLOAD_ID = "prop"
focal_class.modifier: private static final
focal_class.original_string: private static final String SIGNATUREOBJECT_PAYLOAD_ID = "prop";
focal_class.type: String
focal_class.var_name: SIGNATUREOBJECT_PAYLOAD_ID
focal_class.file: OpenADRModel20b/src/main/java/com/avob/openadr/model/oadr20b/xmlsignature/OadrXMLSignatureHandler.java
focal_class.identifier: OadrXMLSignatureHandler
focal_class.class_method_signature: OadrXMLSignatureHandler.OadrXMLSignatureHandler()
focal_class.full_signature: private  OadrXMLSignatureHandler()
focal_class.identifier: OadrXMLSignatureHandler
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  OadrXMLSignatureHandler()
focal_class.class_method_signature: OadrXMLSignatureHandler.asElement(List<Object> list, Class<T> klass)
focal_class.full_signature: private static List<T> asElement(List<Object> list, Class<T> klass)
focal_class.identifier: asElement
focal_class.modifiers: private static
focal_class.parameters: (List<Object> list, Class<T> klass)
focal_class.return: List<T>
focal_class.signature: List<T> asElement(List<Object> list, Class<T> klass)
focal_class.class_method_signature: OadrXMLSignatureHandler.validateReplayProtect(OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.full_signature: private static void validateReplayProtect(OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.identifier: validateReplayProtect
focal_class.modifiers: private static
focal_class.parameters: (OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.return: void
focal_class.signature: void validateReplayProtect(OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.class_method_signature: OadrXMLSignatureHandler.validate(String raw, OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.full_signature: public static void validate(String raw, OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.identifier: validate
focal_class.modifiers: public static
focal_class.parameters: (String raw, OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.return: void
focal_class.signature: void validate(String raw, OadrPayload payload, long nowDate, long millisecondAcceptedDelay)
focal_class.class_method_signature: OadrXMLSignatureHandler.sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.full_signature: public static String sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.identifier: sign
focal_class.modifiers: public static
focal_class.parameters: (Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.return: String
focal_class.signature: String sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.class_method_signature: OadrXMLSignatureHandler.sign(OadrPayload payload, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.full_signature: private static String sign(OadrPayload payload, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.identifier: sign
focal_class.modifiers: private static
focal_class.parameters: (OadrPayload payload, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_class.return: String
focal_class.signature: String sign(OadrPayload payload, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_method.body: public static String sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp) throws Oadr20bXMLSignatureException {
  		if (createdtimestamp < 0) {
  			throw new Oadr20bXMLSignatureException("createdtimestamp must be positive");
  		}
  
  		return sign(Oadr20bFactory.createOadrPayload(SIGNEDOBJECT_PAYLOAD_ID, oadrObject), privateKey, certificate,
  				nonce, createdtimestamp);
  	}
focal_method.class_method_signature: OadrXMLSignatureHandler.sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_method.full_signature: public static String sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_method.identifier: sign
focal_method.invocations: sign createOadrPayload
focal_method.modifiers: public static
focal_method.parameters: (Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)
focal_method.return: String
focal_method.signature: String sign(Object oadrObject, PrivateKey privateKey, X509Certificate certificate, String nonce,
  			Long createdtimestamp)