001: package com.sun.xml.wss.logging.impl.opt.signature;
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.opt.signature.LogStrings");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableWSS_1763_ACTUAL_DEGEST_VALUE(
018: Object arg0) {
019: return messageFactory.getMessage("WSS1763.actual.degest.value",
020: arg0);
021: }
022:
023: /**
024: * WSS1763: Actual digest value is:{0}
025: *
026: */
027: public static String WSS_1763_ACTUAL_DEGEST_VALUE(Object arg0) {
028: return localizer
029: .localize(localizableWSS_1763_ACTUAL_DEGEST_VALUE(arg0));
030: }
031:
032: public static Localizable localizableWSS_1751_NUMBER_TARGETS_SIGNATURE(
033: Object arg0) {
034: return messageFactory.getMessage(
035: "WSS1751.number.targets.signature", arg0);
036: }
037:
038: /**
039: * WSS1751: Number of targets in Signature is: {0}.
040: *
041: */
042: public static String WSS_1751_NUMBER_TARGETS_SIGNATURE(Object arg0) {
043: return localizer
044: .localize(localizableWSS_1751_NUMBER_TARGETS_SIGNATURE(arg0));
045: }
046:
047: public static Localizable localizableWSS_1711_ERROR_VERIFYING_SIGNATURE() {
048: return messageFactory
049: .getMessage("WSS1711.error.verifying.signature");
050: }
051:
052: /**
053: * WSS1711: Error occurred while reading signature for verfication
054: *
055: */
056: public static String WSS_1711_ERROR_VERIFYING_SIGNATURE() {
057: return localizer
058: .localize(localizableWSS_1711_ERROR_VERIFYING_SIGNATURE());
059: }
060:
061: public static Localizable localizableWSS_1752_SIGNATURE_TARGET_VALUE(
062: Object arg0) {
063: return messageFactory.getMessage(
064: "WSS1752.signature.target.value", arg0);
065: }
066:
067: /**
068: * WSS1752: Signature Target Value is {0}
069: *
070: */
071: public static String WSS_1752_SIGNATURE_TARGET_VALUE(Object arg0) {
072: return localizer
073: .localize(localizableWSS_1752_SIGNATURE_TARGET_VALUE(arg0));
074: }
075:
076: public static Localizable localizableWSS_1708_BASE_64_DECODING_ERROR(
077: Object arg0) {
078: return messageFactory.getMessage(
079: "WSS1708.base64.decoding.error", arg0);
080: }
081:
082: /**
083: * WSS1708: Error occurred while decoding signatureValue for Signature with ID {0}
084: *
085: */
086: public static String WSS_1708_BASE_64_DECODING_ERROR(Object arg0) {
087: return localizer
088: .localize(localizableWSS_1708_BASE_64_DECODING_ERROR(arg0));
089: }
090:
091: public static Localizable localizableWSS_1701_SIGN_FAILED() {
092: return messageFactory.getMessage("WSS1701.sign.failed");
093: }
094:
095: /**
096: * WSS1701: Sign operation failed.
097: *
098: */
099: public static String WSS_1701_SIGN_FAILED() {
100: return localizer.localize(localizableWSS_1701_SIGN_FAILED());
101: }
102:
103: public static Localizable localizableWSS_1702_UNSUPPORTED_USERNAMETOKEN_KEYBINDING() {
104: return messageFactory
105: .getMessage("WSS1702.unsupported.usernametoken.keybinding");
106: }
107:
108: /**
109: * WSS1702: UsernameToken as KeyBinding for SignaturePolicy is Not Yet Supported
110: *
111: */
112: public static String WSS_1702_UNSUPPORTED_USERNAMETOKEN_KEYBINDING() {
113: return localizer
114: .localize(localizableWSS_1702_UNSUPPORTED_USERNAMETOKEN_KEYBINDING());
115: }
116:
117: public static Localizable localizableWSS_1722_ERROR_REFERENCE_VALIDATION(
118: Object arg0) {
119: return messageFactory.getMessage(
120: "WSS1722.error.reference.validation", arg0);
121: }
122:
123: /**
124: * WSS1722: Error occurred while validating Reference with URI: {0}
125: *
126: */
127: public static String WSS_1722_ERROR_REFERENCE_VALIDATION(Object arg0) {
128: return localizer
129: .localize(localizableWSS_1722_ERROR_REFERENCE_VALIDATION(arg0));
130: }
131:
132: public static Localizable localizableWSS_1755_MISSINGID_INCOMING_SIGNATURE(
133: Object arg0) {
134: return messageFactory.getMessage(
135: "WSS1755.missingid.incoming.signature", arg0);
136: }
137:
138: /**
139: * WSS1755: Id not present for Incoming signature. Generated Id: {0} for policy verification
140: *
141: */
142: public static String WSS_1755_MISSINGID_INCOMING_SIGNATURE(
143: Object arg0) {
144: return localizer
145: .localize(localizableWSS_1755_MISSINGID_INCOMING_SIGNATURE(arg0));
146: }
147:
148: public static Localizable localizableWSS_1712_UNBUFFERED_SIGNATURE_ERROR() {
149: return messageFactory
150: .getMessage("WSS1712.unbuffered.signature.error");
151: }
152:
153: /**
154: * WSS1712: Signature is not buffered , message not as per configured policy
155: *
156: */
157: public static String WSS_1712_UNBUFFERED_SIGNATURE_ERROR() {
158: return localizer
159: .localize(localizableWSS_1712_UNBUFFERED_SIGNATURE_ERROR());
160: }
161:
162: public static Localizable localizableWSS_1760_DIGEST_INIT_ERROR() {
163: return messageFactory.getMessage("WSS1760.digest.init.error");
164: }
165:
166: /**
167: * WSS1760: Error occurred when obtaining MessageDigest instance.
168: *
169: */
170: public static String WSS_1760_DIGEST_INIT_ERROR() {
171: return localizer
172: .localize(localizableWSS_1760_DIGEST_INIT_ERROR());
173: }
174:
175: public static Localizable localizableWSS_1714_UNSUPPORTED_TRANSFORM_ERROR() {
176: return messageFactory
177: .getMessage("WSS1714.unsupported.transform.error");
178: }
179:
180: /**
181: * WSS1714: Only EXC14n Transform is supported
182: *
183: */
184: public static String WSS_1714_UNSUPPORTED_TRANSFORM_ERROR() {
185: return localizer
186: .localize(localizableWSS_1714_UNSUPPORTED_TRANSFORM_ERROR());
187: }
188:
189: public static Localizable localizableWSS_1715_ERROR_CANONICALIZING_BODY() {
190: return messageFactory
191: .getMessage("WSS1715.error.canonicalizing.body");
192: }
193:
194: /**
195: * WSS1715: Error occurred while canonicalizing BodyTag
196: *
197: */
198: public static String WSS_1715_ERROR_CANONICALIZING_BODY() {
199: return localizer
200: .localize(localizableWSS_1715_ERROR_CANONICALIZING_BODY());
201: }
202:
203: public static Localizable localizableWSS_1718_MISSING_CANON_ALGORITHM() {
204: return messageFactory
205: .getMessage("WSS1718.missing.canon.algorithm");
206: }
207:
208: /**
209: * WSS1718: Canonicalization Algorithm must be present in SignedInfo
210: *
211: */
212: public static String WSS_1718_MISSING_CANON_ALGORITHM() {
213: return localizer
214: .localize(localizableWSS_1718_MISSING_CANON_ALGORITHM());
215: }
216:
217: public static Localizable localizableWSS_1762_CALCULATED_DIGEST_VALUE(
218: Object arg0) {
219: return messageFactory.getMessage(
220: "WSS1762.calculated.digest.value", arg0);
221: }
222:
223: /**
224: * WSS1762: Calculated digest value is:{0}
225: *
226: */
227: public static String WSS_1762_CALCULATED_DIGEST_VALUE(Object arg0) {
228: return localizer
229: .localize(localizableWSS_1762_CALCULATED_DIGEST_VALUE(arg0));
230: }
231:
232: public static Localizable localizableWSS_1723_UNSUPPORTED_TRANSFORM_ELEMENT(
233: Object arg0) {
234: return messageFactory.getMessage(
235: "WSS1723.unsupported.transform.element", arg0);
236: }
237:
238: /**
239: * WSS1723: Unsupported Transform element: {0}
240: *
241: */
242: public static String WSS_1723_UNSUPPORTED_TRANSFORM_ELEMENT(
243: Object arg0) {
244: return localizer
245: .localize(localizableWSS_1723_UNSUPPORTED_TRANSFORM_ELEMENT(arg0));
246: }
247:
248: public static Localizable localizableWSS_1703_UNSUPPORTED_KEYBINDING_SIGNATUREPOLICY(
249: Object arg0) {
250: return messageFactory.getMessage(
251: "WSS1703.unsupported.keybinding.signaturepolicy", arg0);
252: }
253:
254: /**
255: * WSS1703: Unsupported Key Binding for SignaturePolicy: {0}
256: *
257: */
258: public static String WSS_1703_UNSUPPORTED_KEYBINDING_SIGNATUREPOLICY(
259: Object arg0) {
260: return localizer
261: .localize(localizableWSS_1703_UNSUPPORTED_KEYBINDING_SIGNATUREPOLICY(arg0));
262: }
263:
264: public static Localizable localizableWSS_1706_ERROR_ENVELOPED_SIGNATURE() {
265: return messageFactory
266: .getMessage("WSS1706.error.enveloped.signature");
267: }
268:
269: /**
270: * WSS1706: Error occurred while performing Enveloped Signature
271: *
272: */
273: public static String WSS_1706_ERROR_ENVELOPED_SIGNATURE() {
274: return localizer
275: .localize(localizableWSS_1706_ERROR_ENVELOPED_SIGNATURE());
276: }
277:
278: public static Localizable localizableWSS_1707_ERROR_PROCESSING_SIGNEDINFO(
279: Object arg0) {
280: return messageFactory.getMessage(
281: "WSS1707.error.processing.signedinfo", arg0);
282: }
283:
284: /**
285: * WSS1707: Elements under Signature are not as per defined schema or error must have occurred while processing SignedInfo for Signature with ID {0}
286: *
287: */
288: public static String WSS_1707_ERROR_PROCESSING_SIGNEDINFO(
289: Object arg0) {
290: return localizer
291: .localize(localizableWSS_1707_ERROR_PROCESSING_SIGNEDINFO(arg0));
292: }
293:
294: public static Localizable localizableWSS_1724_SIGTYPE_VERIFICATION_FAILED(
295: Object arg0) {
296: return messageFactory.getMessage(
297: "WSS1724.sigtype.verification.failed", arg0);
298: }
299:
300: /**
301: * {0} Signature verification failed
302: *
303: */
304: public static String WSS_1724_SIGTYPE_VERIFICATION_FAILED(
305: Object arg0) {
306: return localizer
307: .localize(localizableWSS_1724_SIGTYPE_VERIFICATION_FAILED(arg0));
308: }
309:
310: public static Localizable localizableWSS_1721_REFERENCE_VALIDATION_FAILED(
311: Object arg0) {
312: return messageFactory.getMessage(
313: "WSS1721.reference.validation.failed", arg0);
314: }
315:
316: /**
317: * WSS1721: Validation of Reference with URI {0} failed
318: *
319: */
320: public static String WSS_1721_REFERENCE_VALIDATION_FAILED(
321: Object arg0) {
322: return localizer
323: .localize(localizableWSS_1721_REFERENCE_VALIDATION_FAILED(arg0));
324: }
325:
326: public static Localizable localizableWSS_1720_ERROR_URI_DEREF(
327: Object arg0) {
328: return messageFactory.getMessage("WSS1720.error.uri.deref",
329: arg0);
330: }
331:
332: /**
333: * WSS1720: Error occurred while dereferencing Reference: {0}
334: *
335: */
336: public static String WSS_1720_ERROR_URI_DEREF(Object arg0) {
337: return localizer
338: .localize(localizableWSS_1720_ERROR_URI_DEREF(arg0));
339: }
340:
341: public static Localizable localizableWSS_1761_TRANSFORM_IO_ERROR() {
342: return messageFactory.getMessage("WSS1761.transform.io.error");
343: }
344:
345: /**
346: * WSS1761: Error occurred while flushing the outputstream.
347: *
348: */
349: public static String WSS_1761_TRANSFORM_IO_ERROR() {
350: return localizer
351: .localize(localizableWSS_1761_TRANSFORM_IO_ERROR());
352: }
353:
354: public static Localizable localizableWSS_1754_TRANSFORM_ALGORITHM(
355: Object arg0) {
356: return messageFactory.getMessage("WSS1754.transform.algorithm",
357: arg0);
358: }
359:
360: /**
361: * WSS1754: Transform algorithm used is: {0}
362: *
363: */
364: public static String WSS_1754_TRANSFORM_ALGORITHM(Object arg0) {
365: return localizer
366: .localize(localizableWSS_1754_TRANSFORM_ALGORITHM(arg0));
367: }
368:
369: public static Localizable localizableWSS_1713_SIGNATURE_VERIFICATION_EXCEPTION(
370: Object arg0) {
371: return messageFactory.getMessage(
372: "WSS1713.signature.verification.exception", arg0);
373: }
374:
375: /**
376: * WSS1713: Signature verification failed due to: {0}
377: *
378: */
379: public static String WSS_1713_SIGNATURE_VERIFICATION_EXCEPTION(
380: Object arg0) {
381: return localizer
382: .localize(localizableWSS_1713_SIGNATURE_VERIFICATION_EXCEPTION(arg0));
383: }
384:
385: public static Localizable localizableWSS_1756_CANONICALIZED_SIGNEDINFO_VALUE(
386: Object arg0) {
387: return messageFactory.getMessage(
388: "WSS1756.canonicalized.signedinfo.value", arg0);
389: }
390:
391: /**
392: * WSS1756: Canonicalized Signed Info: {0}
393: *
394: */
395: public static String WSS_1756_CANONICALIZED_SIGNEDINFO_VALUE(
396: Object arg0) {
397: return localizer
398: .localize(localizableWSS_1756_CANONICALIZED_SIGNEDINFO_VALUE(arg0));
399: }
400:
401: public static Localizable localizableWSS_1719_ERROR_DIGESTVAL_REFERENCE(
402: Object arg0) {
403: return messageFactory.getMessage(
404: "WSS1719.error.digestval.reference", arg0);
405: }
406:
407: /**
408: * WSS1719: Signature Reference validation error. Error occurred while decoding digestValue for Reference: {0}
409: *
410: */
411: public static String WSS_1719_ERROR_DIGESTVAL_REFERENCE(Object arg0) {
412: return localizer
413: .localize(localizableWSS_1719_ERROR_DIGESTVAL_REFERENCE(arg0));
414: }
415:
416: public static Localizable localizableWSS_1705_INVALID_DIGEST_ALGORITHM(
417: Object arg0) {
418: return messageFactory.getMessage(
419: "WSS1705.invalid.digest.algorithm", arg0);
420: }
421:
422: /**
423: * WSS1705: Invalid digest algorithm {0} specified
424: *
425: */
426: public static String WSS_1705_INVALID_DIGEST_ALGORITHM(Object arg0) {
427: return localizer
428: .localize(localizableWSS_1705_INVALID_DIGEST_ALGORITHM(arg0));
429: }
430:
431: public static Localizable localizableWSS_1709_UNRECOGNIZED_SIGNATURE_ELEMENT(
432: Object arg0) {
433: return messageFactory.getMessage(
434: "WSS1709.unrecognized.signature.element", arg0);
435: }
436:
437: /**
438: * WSS1709: Element name {0} is not recognized under signature.
439: *
440: */
441: public static String WSS_1709_UNRECOGNIZED_SIGNATURE_ELEMENT(
442: Object arg0) {
443: return localizer
444: .localize(localizableWSS_1709_UNRECOGNIZED_SIGNATURE_ELEMENT(arg0));
445: }
446:
447: public static Localizable localizableWSS_1710_SIGNATURE_VERFICATION_FAILED(
448: Object arg0) {
449: return messageFactory.getMessage(
450: "WSS1710.signature.verfication.failed", arg0);
451: }
452:
453: /**
454: * WSS1710: Signature Verification for Signature with ID {0} failed
455: *
456: */
457: public static String WSS_1710_SIGNATURE_VERFICATION_FAILED(
458: Object arg0) {
459: return localizer
460: .localize(localizableWSS_1710_SIGNATURE_VERFICATION_FAILED(arg0));
461: }
462:
463: public static Localizable localizableWSS_1757_CANONICALIZED_TARGET_VALUE(
464: Object arg0) {
465: return messageFactory.getMessage(
466: "WSS1757.canonicalized.target.value", arg0);
467: }
468:
469: /**
470: * WSS1757: Canonicalized target value: {0}
471: *
472: */
473: public static String WSS_1757_CANONICALIZED_TARGET_VALUE(Object arg0) {
474: return localizer
475: .localize(localizableWSS_1757_CANONICALIZED_TARGET_VALUE(arg0));
476: }
477:
478: public static Localizable localizableWSS_1717_ERROR_PAYLOAD_VERIFICATION() {
479: return messageFactory
480: .getMessage("WSS1717.error.payload.verification");
481: }
482:
483: /**
484: * WSS1717: Error occurred while doing digest verification of body/payload
485: *
486: */
487: public static String WSS_1717_ERROR_PAYLOAD_VERIFICATION() {
488: return localizer
489: .localize(localizableWSS_1717_ERROR_PAYLOAD_VERIFICATION());
490: }
491:
492: public static Localizable localizableWSS_1758_TRANSFORM_INIT() {
493: return messageFactory.getMessage("WSS1758.transform.init");
494: }
495:
496: /**
497: * WSS1758: Error occured while initializing the EXC14n canonicalizer, Invalid algorithm parameters were specified.
498: *
499: */
500: public static String WSS_1758_TRANSFORM_INIT() {
501: return localizer.localize(localizableWSS_1758_TRANSFORM_INIT());
502: }
503:
504: public static Localizable localizableWSS_1764_CANONICALIZED_PAYLOAD_VALUE(
505: Object arg0) {
506: return messageFactory.getMessage(
507: "WSS1764.canonicalized.payload.value", arg0);
508: }
509:
510: /**
511: * WSS1764: Canonicalized PayLoad is: {0}
512: *
513: */
514: public static String WSS_1764_CANONICALIZED_PAYLOAD_VALUE(
515: Object arg0) {
516: return localizer
517: .localize(localizableWSS_1764_CANONICALIZED_PAYLOAD_VALUE(arg0));
518: }
519:
520: public static Localizable localizableWSS_1759_TRANSFORM_ERROR(
521: Object arg0) {
522: return messageFactory.getMessage("WSS1759.transform.error",
523: arg0);
524: }
525:
526: /**
527: * WSS1759: Following error {0} occured while performing canonicalization {0}
528: *
529: */
530: public static String WSS_1759_TRANSFORM_ERROR(Object arg0) {
531: return localizer
532: .localize(localizableWSS_1759_TRANSFORM_ERROR(arg0));
533: }
534:
535: public static Localizable localizableWSS_1716_ERROR_DEREFERENCE_STR_TRANSFORM() {
536: return messageFactory
537: .getMessage("WSS1716.error.dereference.str.transform");
538: }
539:
540: /**
541: * WSS1716: Error occurred while dereferencing STR-Transform's Reference Element
542: *
543: */
544: public static String WSS_1716_ERROR_DEREFERENCE_STR_TRANSFORM() {
545: return localizer
546: .localize(localizableWSS_1716_ERROR_DEREFERENCE_STR_TRANSFORM());
547: }
548:
549: public static Localizable localizableWSS_1753_TARGET_DIGEST_ALGORITHM(
550: Object arg0) {
551: return messageFactory.getMessage(
552: "WSS1753.target.digest.algorithm", arg0);
553: }
554:
555: /**
556: * WSS1753: Digest algorithm used: {0}
557: *
558: */
559: public static String WSS_1753_TARGET_DIGEST_ALGORITHM(Object arg0) {
560: return localizer
561: .localize(localizableWSS_1753_TARGET_DIGEST_ALGORITHM(arg0));
562: }
563:
564: public static Localizable localizableWSS_1750_URI_TOBE_DEREFERENCED(
565: Object arg0) {
566: return messageFactory.getMessage(
567: "WSS1750.uri.tobe.dereferenced", arg0);
568: }
569:
570: /**
571: * WSS1750: URI to be dereferenced:{0}
572: *
573: */
574: public static String WSS_1750_URI_TOBE_DEREFERENCED(Object arg0) {
575: return localizer
576: .localize(localizableWSS_1750_URI_TOBE_DEREFERENCED(arg0));
577: }
578:
579: public static Localizable localizableWSS_1704_ERROR_RESOLVING_ID(
580: Object arg0) {
581: return messageFactory.getMessage("WSS1704.error.resolving.id",
582: arg0);
583: }
584:
585: /**
586: * WSS1704: Error occurred while resolving id: {0}. Perhaps it is not present in SOAP message.
587: *
588: */
589: public static String WSS_1704_ERROR_RESOLVING_ID(Object arg0) {
590: return localizer
591: .localize(localizableWSS_1704_ERROR_RESOLVING_ID(arg0));
592: }
593:
594: }
|