001: package com.sun.xml.wss.logging.impl.opt.token;
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.token.LogStrings");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableWSS_1801_BST_CREATION_FAILED() {
018: return messageFactory.getMessage("WSS1801.bst.creation.failed");
019: }
020:
021: /**
022: * WSS1801: Error occured while constructing BinarySecurityToken.
023: *
024: */
025: public static String WSS_1801_BST_CREATION_FAILED() {
026: return localizer
027: .localize(localizableWSS_1801_BST_CREATION_FAILED());
028: }
029:
030: public static Localizable localizableWSS_1821_INVALID_DKT_TOKEN() {
031: return messageFactory.getMessage("WSS1821.invalid.dkt.token");
032: }
033:
034: /**
035: * WSS1821: Invalid DerivedKey Token. Offset and Generation both are specified.
036: *
037: */
038: public static String WSS_1821_INVALID_DKT_TOKEN() {
039: return localizer
040: .localize(localizableWSS_1821_INVALID_DKT_TOKEN());
041: }
042:
043: public static Localizable localizableWSS_1851_REFERENCETYPE_X_509_TOKEN(
044: Object arg0) {
045: return messageFactory.getMessage(
046: "WSS1851.referencetype.x509.token", arg0);
047: }
048:
049: /**
050: * WSS1851: Reference type for X509 Token: {0}
051: *
052: */
053: public static String WSS_1851_REFERENCETYPE_X_509_TOKEN(Object arg0) {
054: return localizer
055: .localize(localizableWSS_1851_REFERENCETYPE_X_509_TOKEN(arg0));
056: }
057:
058: public static Localizable localizableWSS_1806_ERROR_GENERATING_SYMMETRIC_KEY() {
059: return messageFactory
060: .getMessage("WSS1806.error.generating.symmetric.key");
061: }
062:
063: /**
064: * WSS1806: Error in generating symmetric keys. The algorithm provided was incorrect.
065: *
066: */
067: public static String WSS_1806_ERROR_GENERATING_SYMMETRIC_KEY() {
068: return localizer
069: .localize(localizableWSS_1806_ERROR_GENERATING_SYMMETRIC_KEY());
070: }
071:
072: public static Localizable localizableWSS_1817_ERROR_REFERENCE_CANWRITER(
073: Object arg0) {
074: return messageFactory.getMessage(
075: "WSS1817.error.reference.canwriter", arg0);
076: }
077:
078: /**
079: * WSS1817: Error occurred while writing {0} to canonicalized writer
080: *
081: */
082: public static String WSS_1817_ERROR_REFERENCE_CANWRITER(Object arg0) {
083: return localizer
084: .localize(localizableWSS_1817_ERROR_REFERENCE_CANWRITER(arg0));
085: }
086:
087: public static Localizable localizableWSS_1807_CERT_PROOF_KEY_NULL_ISSUEDTOKEN() {
088: return messageFactory
089: .getMessage("WSS1807.cert.proofKey.null.issuedtoken");
090: }
091:
092: /**
093: * WSS1807: Requestor Certificate and Proof Key are both null for Issued Token
094: *
095: */
096: public static String WSS_1807_CERT_PROOF_KEY_NULL_ISSUEDTOKEN() {
097: return localizer
098: .localize(localizableWSS_1807_CERT_PROOF_KEY_NULL_ISSUEDTOKEN());
099: }
100:
101: public static Localizable localizableWSS_1810_NULL_PRIVATEKEY_SAML() {
102: return messageFactory
103: .getMessage("WSS1810.null.privatekey.saml");
104: }
105:
106: /**
107: * WSS1810: Private key is set to null inside the private key binding for SAML policy used for Signature
108: *
109: */
110: public static String WSS_1810_NULL_PRIVATEKEY_SAML() {
111: return localizer
112: .localize(localizableWSS_1810_NULL_PRIVATEKEY_SAML());
113: }
114:
115: public static Localizable localizableWSS_1814_ERROR_ENCODING_CERTIFICATE() {
116: return messageFactory
117: .getMessage("WSS1814.error.encoding.certificate");
118: }
119:
120: /**
121: * WSS1814: Error occurred while encoding X509 Certificate
122: *
123: */
124: public static String WSS_1814_ERROR_ENCODING_CERTIFICATE() {
125: return localizer
126: .localize(localizableWSS_1814_ERROR_ENCODING_CERTIFICATE());
127: }
128:
129: public static Localizable localizableWSS_1852_KEY_IDENTIFIER_EMPTY() {
130: return messageFactory.getMessage("WSS1852.keyIdentifier.empty");
131: }
132:
133: /**
134: * WSS1852: KeyIdentifier value cannot be empty. Possible cause, certificate version being used does not support SubjectKeyIdentifier.
135: *
136: */
137: public static String WSS_1852_KEY_IDENTIFIER_EMPTY() {
138: return localizer
139: .localize(localizableWSS_1852_KEY_IDENTIFIER_EMPTY());
140: }
141:
142: public static Localizable localizableWSS_1815_ERROR_PROCESSING_STR() {
143: return messageFactory
144: .getMessage("WSS1815.error.processing.str");
145: }
146:
147: /**
148: * WSS1815: Error while processing SecurityTokenReference in incoming message
149: *
150: */
151: public static String WSS_1815_ERROR_PROCESSING_STR() {
152: return localizer
153: .localize(localizableWSS_1815_ERROR_PROCESSING_STR());
154: }
155:
156: public static Localizable localizableWSS_1813_UNSUPPORTED_EMBEDDEDREFERENCETYPE_SAML() {
157: return messageFactory
158: .getMessage("WSS1813.unsupported.embeddedreferencetype.saml");
159: }
160:
161: /**
162: * WSS1813: Embedded Reference Type for SAML Assertions not supported yet
163: *
164: */
165: public static String WSS_1813_UNSUPPORTED_EMBEDDEDREFERENCETYPE_SAML() {
166: return localizer
167: .localize(localizableWSS_1813_UNSUPPORTED_EMBEDDEDREFERENCETYPE_SAML());
168: }
169:
170: public static Localizable localizableWSS_1804_WRONG_ENCRYPTED_KEY() {
171: return messageFactory.getMessage("WSS1804.wrong.encrypted.key");
172: }
173:
174: /**
175: * WSS1804: The length of encryptedKey Id is 0
176: *
177: */
178: public static String WSS_1804_WRONG_ENCRYPTED_KEY() {
179: return localizer
180: .localize(localizableWSS_1804_WRONG_ENCRYPTED_KEY());
181: }
182:
183: public static Localizable localizableWSS_1811_NULL_SAML_ASSERTION() {
184: return messageFactory.getMessage("WSS1811.null.saml.assertion");
185: }
186:
187: /**
188: * WSS1811: SAML assertion is set to null for SAML Binding used for Signature
189: *
190: */
191: public static String WSS_1811_NULL_SAML_ASSERTION() {
192: return localizer
193: .localize(localizableWSS_1811_NULL_SAML_ASSERTION());
194: }
195:
196: public static Localizable localizableWSS_1809_SCT_NOT_FOUND() {
197: return messageFactory.getMessage("WSS1809.sct.not.found");
198: }
199:
200: /**
201: * WSS1809: SecureConversation token not found in the session.
202: *
203: */
204: public static String WSS_1809_SCT_NOT_FOUND() {
205: return localizer.localize(localizableWSS_1809_SCT_NOT_FOUND());
206: }
207:
208: public static Localizable localizableWSS_1816_ERROR_REFERENCE_MECHANISM(
209: Object arg0) {
210: return messageFactory.getMessage(
211: "WSS1816.error.reference.mechanism", arg0);
212: }
213:
214: /**
215: * WSS1816: Error occurred while resolving {0}
216: *
217: */
218: public static String WSS_1816_ERROR_REFERENCE_MECHANISM(Object arg0) {
219: return localizer
220: .localize(localizableWSS_1816_ERROR_REFERENCE_MECHANISM(arg0));
221: }
222:
223: public static Localizable localizableWSS_1820_ERROR_NONCE_DERIVEDKEY(
224: Object arg0) {
225: return messageFactory.getMessage(
226: "WSS1820.error.nonce.derivedkey", arg0);
227: }
228:
229: /**
230: * WSS1820: Error occurred while decoding nonce for DerivedKey with ID: {0}
231: *
232: */
233: public static String WSS_1820_ERROR_NONCE_DERIVEDKEY(Object arg0) {
234: return localizer
235: .localize(localizableWSS_1820_ERROR_NONCE_DERIVEDKEY(arg0));
236: }
237:
238: public static Localizable localizableWSS_1802_WRONG_TOKENINCLUSION_POLICY() {
239: return messageFactory
240: .getMessage("WSS1802.wrong.tokeninclusion.policy");
241: }
242:
243: /**
244: * WSS1802: IncludeToken policy is Never and WSSAssertion has KeyIndentifier/Thumbprint reference types set to false
245: *
246: */
247: public static String WSS_1802_WRONG_TOKENINCLUSION_POLICY() {
248: return localizer
249: .localize(localizableWSS_1802_WRONG_TOKENINCLUSION_POLICY());
250: }
251:
252: public static Localizable localizableWSS_1818_ALGORITHM_NOTSET_DERIVEDKEY() {
253: return messageFactory
254: .getMessage("WSS1818.algorithm.notset.derivedkey");
255: }
256:
257: /**
258: * WSS1818: Algorithm not set for deriving key
259: *
260: */
261: public static String WSS_1818_ALGORITHM_NOTSET_DERIVEDKEY() {
262: return localizer
263: .localize(localizableWSS_1818_ALGORITHM_NOTSET_DERIVEDKEY());
264: }
265:
266: public static Localizable localizableWSS_1805_DERIVEDKEYS_WITH_ASYMMETRICBINDING_UNSUPPORTED() {
267: return messageFactory
268: .getMessage("WSS1805.derivedkeys.with.asymmetricbinding.unsupported");
269: }
270:
271: /**
272: * WSS1805: Asymmetric Binding with DerivedKeys under X509Token Policy Not Yet Supported
273: *
274: */
275: public static String WSS_1805_DERIVEDKEYS_WITH_ASYMMETRICBINDING_UNSUPPORTED() {
276: return localizer
277: .localize(localizableWSS_1805_DERIVEDKEYS_WITH_ASYMMETRICBINDING_UNSUPPORTED());
278: }
279:
280: public static Localizable localizableWSS_1808_ID_NOTSET_ENCRYPTED_ISSUEDTOKEN() {
281: return messageFactory
282: .getMessage("WSS1808.id.notset.encrypted.issuedtoken");
283: }
284:
285: /**
286: * WSS1808: Id attribute not set on Encrypted IssuedToken
287: *
288: */
289: public static String WSS_1808_ID_NOTSET_ENCRYPTED_ISSUEDTOKEN() {
290: return localizer
291: .localize(localizableWSS_1808_ID_NOTSET_ENCRYPTED_ISSUEDTOKEN());
292: }
293:
294: public static Localizable localizableWSS_1803_UNSUPPORTED_REFERENCE_TYPE(
295: Object arg0) {
296: return messageFactory.getMessage(
297: "WSS1803.unsupported.reference.type", arg0);
298: }
299:
300: /**
301: * WSS1803: The reference type {0} is not supported
302: *
303: */
304: public static String WSS_1803_UNSUPPORTED_REFERENCE_TYPE(Object arg0) {
305: return localizer
306: .localize(localizableWSS_1803_UNSUPPORTED_REFERENCE_TYPE(arg0));
307: }
308:
309: public static Localizable localizableWSS_1819_ERROR_SYMMKEY_DERIVEDKEY() {
310: return messageFactory
311: .getMessage("WSS1819.error.symmkey.derivedkey");
312: }
313:
314: /**
315: * WSS1819: Error occurred while generating SymmetricKey for DerivedKeyToken
316: *
317: */
318: public static String WSS_1819_ERROR_SYMMKEY_DERIVEDKEY() {
319: return localizer
320: .localize(localizableWSS_1819_ERROR_SYMMKEY_DERIVEDKEY());
321: }
322:
323: public static Localizable localizableWSS_1812_MISSING_CERT_SAMLASSERTION() {
324: return messageFactory
325: .getMessage("WSS1812.missing.cert.samlassertion");
326: }
327:
328: /**
329: * WSS1812: Could not locate Certificate corresponding to Key in SubjectConfirmation of SAML Assertion
330: *
331: */
332: public static String WSS_1812_MISSING_CERT_SAMLASSERTION() {
333: return localizer
334: .localize(localizableWSS_1812_MISSING_CERT_SAMLASSERTION());
335: }
336:
337: }
|