001: package com.sun.xml.wss.logging.impl.crypto;
002:
003: import com.sun.xml.ws.util.localization.Localizable;
004: import com.sun.xml.ws.util.localization.LocalizableMessageFactory;
005: import com.sun.xml.ws.util.localization.Localizer;
006:
007: /**
008: * Defines string formatting method for each constant in the resource file
009: *
010: */
011: public final class LogStringsMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.xml.wss.logging.impl.crypto.LogStrings");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableWSS_1232_FAILEDTO_DECRYPT_ATTACHMENT() {
018: return messageFactory
019: .getMessage("WSS1232.failedto.decrypt.attachment");
020: }
021:
022: /**
023: * WSS1232: Failed to decrypt Attachment
024: *
025: */
026: public static String WSS_1232_FAILEDTO_DECRYPT_ATTACHMENT() {
027: return localizer
028: .localize(localizableWSS_1232_FAILEDTO_DECRYPT_ATTACHMENT());
029: }
030:
031: public static Localizable localizableWSS_1234_UNMATCHED_CONTENT_ID() {
032: return messageFactory
033: .getMessage("WSS1234.unmatched.content-id");
034: }
035:
036: /**
037: * WSS1234: Content-Ids in encrypted and decrypted attachments donot match
038: *
039: */
040: public static String WSS_1234_UNMATCHED_CONTENT_ID() {
041: return localizer
042: .localize(localizableWSS_1234_UNMATCHED_CONTENT_ID());
043: }
044:
045: public static Localizable localizableWSS_1227_KEY_ENCRYPTION_ALG_VIOLATION() {
046: return messageFactory
047: .getMessage("WSS1227.keyEncryptionAlg.Violation");
048: }
049:
050: /**
051: * WSS1227: Violation of BSP5621. KeyEncryption algorithm MUST be one of #rsa-1_5,#rsa-oaep-mgf1p,#kw-tripledes,#kw-aes256,#kw-aes128
052: *
053: */
054: public static String WSS_1227_KEY_ENCRYPTION_ALG_VIOLATION() {
055: return localizer
056: .localize(localizableWSS_1227_KEY_ENCRYPTION_ALG_VIOLATION());
057: }
058:
059: public static Localizable localizableWSS_1225_ERROR_ENCRYPTING_ATTACHMENT() {
060: return messageFactory
061: .getMessage("WSS1225.error.encrypting.Attachment");
062: }
063:
064: /**
065: * WSS1225: Error occured while trying to encrypt attachment
066: *
067: */
068: public static String WSS_1225_ERROR_ENCRYPTING_ATTACHMENT() {
069: return localizer
070: .localize(localizableWSS_1225_ERROR_ENCRYPTING_ATTACHMENT());
071: }
072:
073: public static Localizable localizableWSS_1200_ERROR_DECRYPTING_KEY() {
074: return messageFactory
075: .getMessage("WSS1200.error.decrypting.key");
076: }
077:
078: /**
079: * WSS1200: Error decrypting encryption key
080: *
081: */
082: public static String WSS_1200_ERROR_DECRYPTING_KEY() {
083: return localizer
084: .localize(localizableWSS_1200_ERROR_DECRYPTING_KEY());
085: }
086:
087: public static Localizable localizableWSS_1219_UNABLETO_REFER_ATTACHED_ISSUE_TOKEN() {
088: return messageFactory
089: .getMessage("WSS1219.unableto.refer.Attached.IssueToken");
090: }
091:
092: /**
093: * WSS1219: Cannot determine how to reference the Attached Issued Token in the Message
094: *
095: */
096: public static String WSS_1219_UNABLETO_REFER_ATTACHED_ISSUE_TOKEN() {
097: return localizer
098: .localize(localizableWSS_1219_UNABLETO_REFER_ATTACHED_ISSUE_TOKEN());
099: }
100:
101: public static Localizable localizableWSS_1216_UNABLETO_GET_SYMMETRICKEY_ENCRYPTION() {
102: return messageFactory
103: .getMessage("WSS1216.unableto.get.symmetrickey.Encryption");
104: }
105:
106: /**
107: * WSS1216: unable to get the symmetric key for encryption
108: *
109: */
110: public static String WSS_1216_UNABLETO_GET_SYMMETRICKEY_ENCRYPTION() {
111: return localizer
112: .localize(localizableWSS_1216_UNABLETO_GET_SYMMETRICKEY_ENCRYPTION());
113: }
114:
115: public static Localizable localizableWSS_1211_UNSUPPORTED_KEY_IDENTIFIER_STRATEGY_X_509_V_1() {
116: return messageFactory
117: .getMessage("WSS1211.unsupported.KeyIdentifierStrategy.X509v1");
118: }
119:
120: /**
121: * WSS1211: Key Identifier strategy with X509v1 certificate is not allowed
122: *
123: */
124: public static String WSS_1211_UNSUPPORTED_KEY_IDENTIFIER_STRATEGY_X_509_V_1() {
125: return localizer
126: .localize(localizableWSS_1211_UNSUPPORTED_KEY_IDENTIFIER_STRATEGY_X_509_V_1());
127: }
128:
129: public static Localizable localizableWSS_1231_NULL_SYMMETRIC_KEY() {
130: return messageFactory.getMessage("WSS1231.null.SymmetricKey");
131: }
132:
133: /**
134: * WSS1231: Symmetric Key is null
135: *
136: */
137: public static String WSS_1231_NULL_SYMMETRIC_KEY() {
138: return localizer
139: .localize(localizableWSS_1231_NULL_SYMMETRIC_KEY());
140: }
141:
142: public static Localizable localizableWSS_1220_UNABLETO_REFER_UN_ATTACHED_ISSUE_TOKEN() {
143: return messageFactory
144: .getMessage("WSS1220.unableto.refer.Un-Attached.IssueToken");
145: }
146:
147: /**
148: * WSS1220: Cannot determine how to reference the Un-Attached Issued Token in the Message
149: *
150: */
151: public static String WSS_1220_UNABLETO_REFER_UN_ATTACHED_ISSUE_TOKEN() {
152: return localizer
153: .localize(localizableWSS_1220_UNABLETO_REFER_UN_ATTACHED_ISSUE_TOKEN());
154: }
155:
156: public static Localizable localizableWSS_1237_ERROR_PROCESSING_ENCRPYTED_DATA() {
157: return messageFactory
158: .getMessage("WSS1237.Error.Processing.EncrpytedData");
159: }
160:
161: /**
162: * WSS1237: Error occured in processing encrypted Data
163: *
164: */
165: public static String WSS_1237_ERROR_PROCESSING_ENCRPYTED_DATA() {
166: return localizer
167: .localize(localizableWSS_1237_ERROR_PROCESSING_ENCRPYTED_DATA());
168: }
169:
170: public static Localizable localizableWSS_1233_FAILED_GET_DATA_ENCRYPTION_ALGORITHM() {
171: return messageFactory
172: .getMessage("WSS1233.failed.get.DataEncryptionAlgorithm");
173: }
174:
175: /**
176: * WSS1233: Failed to get Data Encryption Algorithm
177: *
178: */
179: public static String WSS_1233_FAILED_GET_DATA_ENCRYPTION_ALGORITHM() {
180: return localizer
181: .localize(localizableWSS_1233_FAILED_GET_DATA_ENCRYPTION_ALGORITHM());
182: }
183:
184: public static Localizable localizableWSS_1229_ERROR_PROCESSING_ENCRPYTED_KEY() {
185: return messageFactory
186: .getMessage("WSS1229.Error.Processing.EncrpytedKey");
187: }
188:
189: /**
190: * WSS1229: Error occured in processing encrypted key
191: *
192: */
193: public static String WSS_1229_ERROR_PROCESSING_ENCRPYTED_KEY() {
194: return localizer
195: .localize(localizableWSS_1229_ERROR_PROCESSING_ENCRPYTED_KEY());
196: }
197:
198: public static Localizable localizableWSS_1242_EXCEPTION_DOM() {
199: return messageFactory.getMessage("WSS1242.exception.dom");
200: }
201:
202: /**
203: * WSS1242: DOM Exception occured while trying to change SOAP Element
204: *
205: */
206: public static String WSS_1242_EXCEPTION_DOM() {
207: return localizer.localize(localizableWSS_1242_EXCEPTION_DOM());
208: }
209:
210: public static Localizable localizableWSS_1208_FAILEDTO_GENERATE_RANDOM_SYMMETRICKEY(
211: Object arg0) {
212: return messageFactory.getMessage(
213: "WSS1208.failedto.generate.random.symmetrickey", arg0);
214: }
215:
216: /**
217: * WSS1208: Exception [ {0} ] when trying to generate random symmetric key
218: *
219: */
220: public static String WSS_1208_FAILEDTO_GENERATE_RANDOM_SYMMETRICKEY(
221: Object arg0) {
222: return localizer
223: .localize(localizableWSS_1208_FAILEDTO_GENERATE_RANDOM_SYMMETRICKEY(arg0));
224: }
225:
226: public static Localizable localizableWSS_1235_FAILEDTO_GET_TARGET_ELEMENTS() {
227: return messageFactory
228: .getMessage("WSS1235.failedto.get.targetElements");
229: }
230:
231: /**
232: * WSS1225: Failed to get Target Elements
233: *
234: */
235: public static String WSS_1235_FAILEDTO_GET_TARGET_ELEMENTS() {
236: return localizer
237: .localize(localizableWSS_1235_FAILEDTO_GET_TARGET_ELEMENTS());
238: }
239:
240: public static Localizable localizableWSS_1204_CRLF_INIT_FAILED() {
241: return messageFactory.getMessage("WSS1204.crlf.init.failed");
242: }
243:
244: /**
245: * WSS1204: Error occurred while initializing internal buffer.
246: *
247: */
248: public static String WSS_1204_CRLF_INIT_FAILED() {
249: return localizer
250: .localize(localizableWSS_1204_CRLF_INIT_FAILED());
251: }
252:
253: public static Localizable localizableWSS_1217_NULL_ISSUE_TOKEN() {
254: return messageFactory.getMessage("WSS1217.null.IssueToken");
255: }
256:
257: /**
258: * WSS1217: Issued Token to be inserted into the Message was Null
259: *
260: */
261: public static String WSS_1217_NULL_ISSUE_TOKEN() {
262: return localizer
263: .localize(localizableWSS_1217_NULL_ISSUE_TOKEN());
264: }
265:
266: public static Localizable localizableWSS_1202_COULDNOT_LOCATE_SYMMETRICKEY() {
267: return messageFactory
268: .getMessage("WSS1202.couldnot.locate.symmetrickey");
269: }
270:
271: /**
272: * WSS1202: The symmetric key required for decryption was not found.
273: *
274: */
275: public static String WSS_1202_COULDNOT_LOCATE_SYMMETRICKEY() {
276: return localizer
277: .localize(localizableWSS_1202_COULDNOT_LOCATE_SYMMETRICKEY());
278: }
279:
280: public static Localizable localizableWSS_1241_FAILED_RECEIVER_REQ_ENCRYPTED_DATA() {
281: return messageFactory
282: .getMessage("WSS1241.failed.receiverReq.encryptedData");
283: }
284:
285: /**
286: * WSS1241: Receiver requirement for EncryptedData with ID "+id+ " is not met"
287: *
288: */
289: public static String WSS_1241_FAILED_RECEIVER_REQ_ENCRYPTED_DATA() {
290: return localizer
291: .localize(localizableWSS_1241_FAILED_RECEIVER_REQ_ENCRYPTED_DATA());
292: }
293:
294: public static Localizable localizableWSS_1210_UNSUPPORTED_USERNAME_TOKEN_AS_KEY_BINDING_ENCRYPTION_POLICY() {
295: return messageFactory
296: .getMessage("WSS1210.unsupported.UsernameToken.AsKeyBinding.EncryptionPolicy");
297: }
298:
299: /**
300: * WSS1210: UsernameToken as KeyBinding for EncryptionPolicy is Not Yet Supported
301: *
302: */
303: public static String WSS_1210_UNSUPPORTED_USERNAME_TOKEN_AS_KEY_BINDING_ENCRYPTION_POLICY() {
304: return localizer
305: .localize(localizableWSS_1210_UNSUPPORTED_USERNAME_TOKEN_AS_KEY_BINDING_ENCRYPTION_POLICY());
306: }
307:
308: public static Localizable localizableWSS_1223_UNABLETO_SET_KEY_INFO_ENCRYPTED_KEY() {
309: return messageFactory
310: .getMessage("WSS1223.unableto.set.KeyInfo.EncryptedKey");
311: }
312:
313: /**
314: * WSS1223: unable to set keyinfo in Encrypted Key
315: *
316: */
317: public static String WSS_1223_UNABLETO_SET_KEY_INFO_ENCRYPTED_KEY() {
318: return localizer
319: .localize(localizableWSS_1223_UNABLETO_SET_KEY_INFO_ENCRYPTED_KEY());
320: }
321:
322: public static Localizable localizableWSS_1226_ERROR_SERIALIZE_HEADERS() {
323: return messageFactory
324: .getMessage("WSS1226.error.serialize.headers");
325: }
326:
327: /**
328: * WSS1226: Error occured while trying to serialize headers
329: *
330: */
331: public static String WSS_1226_ERROR_SERIALIZE_HEADERS() {
332: return localizer
333: .localize(localizableWSS_1226_ERROR_SERIALIZE_HEADERS());
334: }
335:
336: public static Localizable localizableWSS_1239_FAILED_RECEIVER_REQ_MORE() {
337: return messageFactory
338: .getMessage("WSS1239.failed.receiverReq.more");
339: }
340:
341: /**
342: * WSS1239: More receiver requirements specified than present in the message
343: *
344: */
345: public static String WSS_1239_FAILED_RECEIVER_REQ_MORE() {
346: return localizer
347: .localize(localizableWSS_1239_FAILED_RECEIVER_REQ_MORE());
348: }
349:
350: public static Localizable localizableWSS_1214_UNABLETO_LOCATE_CERTIFICATE_SAML_ASSERTION() {
351: return messageFactory
352: .getMessage("WSS1214.unableto.locate.certificate.SAMLAssertion");
353: }
354:
355: /**
356: * WSS1214: Could not locate Certificate corresponding to Key in SubjectConfirmation of SAML Assertion
357: *
358: */
359: public static String WSS_1214_UNABLETO_LOCATE_CERTIFICATE_SAML_ASSERTION() {
360: return localizer
361: .localize(localizableWSS_1214_UNABLETO_LOCATE_CERTIFICATE_SAML_ASSERTION());
362: }
363:
364: public static Localizable localizableWSS_1212_ERROR_SAML_ASSERTION_EXCEPTION() {
365: return messageFactory
366: .getMessage("WSS1212.error.SAMLAssertionException");
367: }
368:
369: /**
370: * WSS1212: Error occured creating SAML Assertion
371: *
372: */
373: public static String WSS_1212_ERROR_SAML_ASSERTION_EXCEPTION() {
374: return localizer
375: .localize(localizableWSS_1212_ERROR_SAML_ASSERTION_EXCEPTION());
376: }
377:
378: public static Localizable localizableWSS_1236_EXCEPTION_SOAP() {
379: return messageFactory.getMessage("WSS1236.exception.soap");
380: }
381:
382: /**
383: * WSS1236: SOAP Exception occured while trying to change SOAP Element
384: *
385: */
386: public static String WSS_1236_EXCEPTION_SOAP() {
387: return localizer.localize(localizableWSS_1236_EXCEPTION_SOAP());
388: }
389:
390: public static Localizable localizableWSS_1234_INVALID_TRANSFORM() {
391: return messageFactory.getMessage("WSS1234.invalid.transform");
392: }
393:
394: /**
395: * WSS1234: Unexpected Transform for specified Algorithm
396: *
397: */
398: public static String WSS_1234_INVALID_TRANSFORM() {
399: return localizer
400: .localize(localizableWSS_1234_INVALID_TRANSFORM());
401: }
402:
403: public static Localizable localizableWSS_1213_NULL_SAML_ASSERTION() {
404: return messageFactory.getMessage("WSS1213.null.SAMLAssertion");
405: }
406:
407: /**
408: * WSS1213: SAML Assertion is NULL
409: *
410: */
411: public static String WSS_1213_NULL_SAML_ASSERTION() {
412: return localizer
413: .localize(localizableWSS_1213_NULL_SAML_ASSERTION());
414: }
415:
416: public static Localizable localizableWSS_1238_FAILED_RECEIVER_REQ_ATTACHMENTS() {
417: return messageFactory
418: .getMessage("WSS1238.failed.receiverReq.attachments");
419: }
420:
421: /**
422: * WSS1238: Receiver requirement cid:* is not met,only few attachments out of all were encrypted
423: *
424: */
425: public static String WSS_1238_FAILED_RECEIVER_REQ_ATTACHMENTS() {
426: return localizer
427: .localize(localizableWSS_1238_FAILED_RECEIVER_REQ_ATTACHMENTS());
428: }
429:
430: public static Localizable localizableWSS_1224_ERROR_INSERTION_HEADER_BLOCK_SECURITY_HEADER() {
431: return messageFactory
432: .getMessage("WSS1224.error.insertion.HeaderBlock.SecurityHeader");
433: }
434:
435: /**
436: * WSS1224: Error occured while inserting header block in security header
437: *
438: */
439: public static String WSS_1224_ERROR_INSERTION_HEADER_BLOCK_SECURITY_HEADER() {
440: return localizer
441: .localize(localizableWSS_1224_ERROR_INSERTION_HEADER_BLOCK_SECURITY_HEADER());
442: }
443:
444: public static Localizable localizableWSS_1205_UNABLETO_INITIALIZE_XML_CIPHER() {
445: return messageFactory
446: .getMessage("WSS1205.unableto.initialize.xml.cipher");
447: }
448:
449: /**
450: * WSS1205: Unable to initialize XML Cipher
451: *
452: */
453: public static String WSS_1205_UNABLETO_INITIALIZE_XML_CIPHER() {
454: return localizer
455: .localize(localizableWSS_1205_UNABLETO_INITIALIZE_XML_CIPHER());
456: }
457:
458: public static Localizable localizableWSS_1201_CID_ENCRYPT_ALL_NOTSUPPORTED() {
459: return messageFactory
460: .getMessage("WSS1201.cid_encrypt_all_notsupported");
461: }
462:
463: /**
464: * WSS1201: Verification requirement cid:* is not supported when EncryptedData is not included into a ReferenceList
465: *
466: */
467: public static String WSS_1201_CID_ENCRYPT_ALL_NOTSUPPORTED() {
468: return localizer
469: .localize(localizableWSS_1201_CID_ENCRYPT_ALL_NOTSUPPORTED());
470: }
471:
472: public static Localizable localizableWSS_1222_UNSUPPORTED_KEY_BINDING_ENCRYPTION_POLICY() {
473: return messageFactory
474: .getMessage("WSS1222.unsupported.KeyBinding.EncryptionPolicy");
475: }
476:
477: /**
478: * WSS1222: Unsupported Key Binding for EncryptionPolicy
479: *
480: */
481: public static String WSS_1222_UNSUPPORTED_KEY_BINDING_ENCRYPTION_POLICY() {
482: return localizer
483: .localize(localizableWSS_1222_UNSUPPORTED_KEY_BINDING_ENCRYPTION_POLICY());
484: }
485:
486: public static Localizable localizableWSS_1215_UNSUPPORTED_EMBEDDED_REFERENCE_SAML_ASSERTION() {
487: return messageFactory
488: .getMessage("WSS1215.unsupported.EmbeddedReference.SAMLAssertion");
489: }
490:
491: /**
492: * WSS1215: Embedded Reference Type for SAML Assertions not supported yet
493: *
494: */
495: public static String WSS_1215_UNSUPPORTED_EMBEDDED_REFERENCE_SAML_ASSERTION() {
496: return localizer
497: .localize(localizableWSS_1215_UNSUPPORTED_EMBEDDED_REFERENCE_SAML_ASSERTION());
498: }
499:
500: public static Localizable localizableWSS_1203_UNABLETO_DECRYPT_MESSAGE(
501: Object arg0) {
502: return messageFactory.getMessage(
503: "WSS1203.unableto.decrypt.message", arg0);
504: }
505:
506: /**
507: * WSS1203: Exception [ {0} ] while trying to decrypt message
508: *
509: */
510: public static String WSS_1203_UNABLETO_DECRYPT_MESSAGE(Object arg0) {
511: return localizer
512: .localize(localizableWSS_1203_UNABLETO_DECRYPT_MESSAGE(arg0));
513: }
514:
515: public static Localizable localizableWSS_1221_NULL_SECURE_CONVERSATION_TOKEN() {
516: return messageFactory
517: .getMessage("WSS1221.null.SecureConversationToken");
518: }
519:
520: /**
521: * WSS1221: SecureConversation Token not Found
522: *
523: */
524: public static String WSS_1221_NULL_SECURE_CONVERSATION_TOKEN() {
525: return localizer
526: .localize(localizableWSS_1221_NULL_SECURE_CONVERSATION_TOKEN());
527: }
528:
529: public static Localizable localizableWSS_1230_FAILED_RECEIVER_REQ() {
530: return messageFactory.getMessage("WSS1230.failed.receiverReq");
531: }
532:
533: /**
534: * WSS1230: Receiver requirement for URI is not met
535: *
536: */
537: public static String WSS_1230_FAILED_RECEIVER_REQ() {
538: return localizer
539: .localize(localizableWSS_1230_FAILED_RECEIVER_REQ());
540: }
541:
542: public static Localizable localizableWSS_1207_UNABLETO_ENCRYPT_MESSAGE() {
543: return messageFactory
544: .getMessage("WSS1207.unableto.encrypt.message");
545: }
546:
547: /**
548: * WSS1207: Unable to encrypt element
549: *
550: */
551: public static String WSS_1207_UNABLETO_ENCRYPT_MESSAGE() {
552: return localizer
553: .localize(localizableWSS_1207_UNABLETO_ENCRYPT_MESSAGE());
554: }
555:
556: public static Localizable localizableWSS_1218_UNABLETO_LOCATE_ISSUE_TOKEN_MESSAGE() {
557: return messageFactory
558: .getMessage("WSS1218.unableto.locate.IssueToken.Message");
559: }
560:
561: /**
562: * WSS1218: Could not locate Issued Token in Message
563: *
564: */
565: public static String WSS_1218_UNABLETO_LOCATE_ISSUE_TOKEN_MESSAGE() {
566: return localizer
567: .localize(localizableWSS_1218_UNABLETO_LOCATE_ISSUE_TOKEN_MESSAGE());
568: }
569:
570: public static Localizable localizableWSS_1209_FAILEDTO_LOCATE_ENCRYPT_PART_MESSAGE() {
571: return messageFactory
572: .getMessage("WSS1209.failedto.locate.EncryptPart.Message");
573: }
574:
575: /**
576: * WSS1209: None of the specified Encryption Parts found in the Message
577: *
578: */
579: public static String WSS_1209_FAILEDTO_LOCATE_ENCRYPT_PART_MESSAGE() {
580: return localizer
581: .localize(localizableWSS_1209_FAILEDTO_LOCATE_ENCRYPT_PART_MESSAGE());
582: }
583:
584: public static Localizable localizableWSS_1240_FAILED_RECEIVER_REQ_MORETARGETS() {
585: return messageFactory
586: .getMessage("WSS1240.failed.receiverReq.moretargets");
587: }
588:
589: /**
590: * WSS1240: Receiver requirement has more targets specified
591: *
592: */
593: public static String WSS_1240_FAILED_RECEIVER_REQ_MORETARGETS() {
594: return localizer
595: .localize(localizableWSS_1240_FAILED_RECEIVER_REQ_MORETARGETS());
596: }
597:
598: public static Localizable localizableWSS_1228_DATA_ENCRYPTION_ALG_VIOLATION() {
599: return messageFactory
600: .getMessage("WSS1228.DataEncryptionAlg.Violation");
601: }
602:
603: /**
604: * WSS1228: Violation of BSP5620 for DataEncryption Algo permitted values
605: *
606: */
607: public static String WSS_1228_DATA_ENCRYPTION_ALG_VIOLATION() {
608: return localizer
609: .localize(localizableWSS_1228_DATA_ENCRYPTION_ALG_VIOLATION());
610: }
611:
612: public static Localizable localizableWSS_1206_ILLEGAL_TARGET(
613: Object arg0) {
614: return messageFactory
615: .getMessage("WSS1206.illegal.target", arg0);
616: }
617:
618: /**
619: * WSS1206: Illegal encryption target {0}
620: *
621: */
622: public static String WSS_1206_ILLEGAL_TARGET(Object arg0) {
623: return localizer
624: .localize(localizableWSS_1206_ILLEGAL_TARGET(arg0));
625: }
626:
627: }
|