Skip to content

Commit 76cc096

Browse files
committed
dealt with properties encoding issue - relates to github #1660
1 parent 56d4f6f commit 76cc096

File tree

3 files changed

+349
-0
lines changed

3 files changed

+349
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
application/pkcs7-signature;; x-java-content-handler=org.bouncycastle.mail.smime.handlers.pkcs7_signature
2+
application/pkcs7-mime;; x-java-content-handler=org.bouncycastle.mail.smime.handlers.pkcs7_mime
3+
application/x-pkcs7-signature;; x-java-content-handler=org.bouncycastle.mail.smime.handlers.x_pkcs7_signature
4+
application/x-pkcs7-mime;; x-java-content-handler=org.bouncycastle.mail.smime.handlers.x_pkcs7_mime
5+
multipart/signed;; x-java-content-handler=org.bouncycastle.mail.smime.handlers.multipart_signed
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
## constructor exception messages
2+
3+
# Signature valid
4+
SignedMailValidator.sigValid.title = Signature valid
5+
SignedMailValidator.sigValid.text = Signature valid
6+
SignedMailValidator.sigValid.summary = Signature valid
7+
SignedMailValidator.sigValid.details = Signature valid
8+
9+
# Signature invalid
10+
SignedMailValidator.sigInvalid.title = Signature invalid
11+
SignedMailValidator.sigInvalid.text = Signature invalid
12+
SignedMailValidator.sigInvalid.summary = Signature invalid
13+
SignedMailValidator.sigInvalid.details = Signature invalid
14+
15+
# message is not signed
16+
SignedMailValidator.noSignedMessage.title = Message is not signed
17+
SignedMailValidator.noSignedMessage.text = SignedMailValidator: MimeMessage message is not a signed message.
18+
SignedMailValidator.noSignedMessage.summary = SignedMailValidator: MimeMessage message is not a signed message.
19+
SignedMailValidator.noSignedMessage.details = SignedMailValidator: MimeMessage message is not a signed message.
20+
21+
# exception reading the Mime message
22+
# {0} message of the underlying exception
23+
# {1} the underlying exception
24+
# {2} the name of the exception
25+
SignedMailValidator.exceptionReadingMessage.title = Exception reading the MimeMessage
26+
SignedMailValidator.exceptionReadingMessage.text = SignedMailValidator: there was a {2} reading the MimeMessage: {0}.
27+
SignedMailValidator.exceptionReadingMessage.summary = SignedMailValidator: there was a {2} reading the MimeMessage: {0}.
28+
SignedMailValidator.exceptionReadingMessage.details = SignedMailValidator: there was a {2} reading the MimeMessage: {0}.
29+
30+
## exception messages
31+
32+
# signer has not signed the mail message
33+
SignedMailValidator.wrongSigner.title = Signer has not signed the message
34+
SignedMailValidator.wrongSigner.text = The given signer did not sign the mail message.
35+
SignedMailValidator.wrongSigner.summary = The given signer did not sign the mail message.
36+
SignedMailValidator.wrongSigner.details = The given signer did not sign the mail message.
37+
38+
## notifications messages
39+
40+
# short signing key
41+
# {0} the key length as Integer
42+
SignedMailValidator.shortSigningKey.title = Careless short signing key
43+
SignedMailValidator.shortSigningKey.text = Warning: The signing key is only {0} bits long.
44+
SignedMailValidator.shortSigningKey.summary = Warning: The signing key is only {0} bits long.
45+
SignedMailValidator.shortSigningKey.details = Warning: The signing key is only {0} bits long.
46+
47+
# signing certificate has very long validity period
48+
# {0} notBefore date
49+
# {1} notAfter date
50+
SignedMailValidator.longValidity.title = Very long validity period
51+
SignedMailValidator.longValidity.text = Warning: The signing certificate has a very long validity period: from {0,date} {0,time,full} until {1,date} {1,time,full}.
52+
SignedMailValidator.longValidity.summary = Warning: The signing certificate has a very long validity period: from {0,date} {0,time,full} until {1,date} {1,time,full}.
53+
SignedMailValidator.longValidity.details = Warning: The signing certificate has a very long validity period: from {0,date} {0,time,full} until {1,date} {1,time,full}.
54+
55+
# signed receipt requested
56+
SignedMailValidator.signedReceiptRequest.title = Signed Receipt Request
57+
SignedMailValidator.signedReceiptRequest.text = The signature contains a signed receipt request.
58+
SignedMailValidator.signedReceiptRequest.summary = The signature contains a signed receipt request.
59+
SignedMailValidator.signedReceiptRequest.details = The signature contains a signed receipt request as per RFC 2634.
60+
61+
## error messages
62+
63+
# no signer certificate found
64+
SignedMailValidator.noSignerCert.title = No signer certificate found
65+
SignedMailValidator.noSignerCert.text = Signature Validation failed: No signer certificate found.
66+
SignedMailValidator.noSignerCert.summary = Signature Validation failed: No signer certificate found.
67+
SignedMailValidator.noSignerCert.details = Signature Validation failed: No signer certificate found.
68+
69+
# certificate contains no email address
70+
SignedMailValidator.noEmailInCert.title = Certificate not usable for email signatures
71+
SignedMailValidator.noEmailInCert.text = The signer certificate is not usable for email signatures: it contains no email address.
72+
SignedMailValidator.noEmailInCert.summary = The signer certificate is not usable for email signatures: it contains no email address.
73+
SignedMailValidator.noEmailInCert.details = The signer certificate is not usable for email signatures: it contains no email address.
74+
75+
# certificate email address does not match from email address
76+
# {0} from email addresses in the message
77+
# {1} email addresses in the certificate
78+
SignedMailValidator.emailFromCertMismatch.title = Email address mismatch
79+
SignedMailValidator.emailFromCertMismatch.text = Email address in signer certificate does not match the sender address. Signer email: {1}. Sender email: {0}.
80+
SignedMailValidator.emailFromCertMismatch.summary = Email address in signer certificate does not match the sender address. Signer email: {1}. Sender email: {0}.
81+
SignedMailValidator.emailFromCertMismatch.details = Email address in signer certificate does not match the sender address. Signer email: {1}. Sender email: {0}.
82+
83+
# exception extracting email addresses from certificate
84+
# {0} message of the underlying exception
85+
# {1} the underlying exception
86+
# {2} the name of the exception
87+
SignedMailValidator.certGetEmailError.title = Exception extracting email addresses from certificate
88+
SignedMailValidator.certGetEmailError.text = There was a {2} extracting the email addresses from the certificate. Cause: {0}.
89+
SignedMailValidator.certGetEmailError.summary = There was a {2} extracting the email addresses from the certificate.
90+
SignedMailValidator.certGetEmailError.details = There was a {2} extracting the email addresses from the certificate. Cause: {0}.
91+
92+
# no signing time found
93+
SignedMailValidator.noSigningTime.title = No signing time
94+
SignedMailValidator.noSigningTime.text = The signature contains no signing time. Using the current time for validating the certificate path.
95+
SignedMailValidator.noSigningTime.summary = The signature contains no signing time.
96+
SignedMailValidator.noSigningTime.details = The signature contains no signing time. Using the current time for validating the certificate path.
97+
98+
# expired at signing time
99+
# {0} signing time
100+
# {1} not after date
101+
SignedMailValidator.certExpired.title = Certificate expired at signing time
102+
SignedMailValidator.certExpired.text = The message was signed at {0,date} {0,time,full}. But the certificate expired at {1,date} {1,time,full}.
103+
SignedMailValidator.certExpired.summary = The message was signed at {0,date} {0,time,full}. But the certificate expired at {1,date} {1,time,full}.
104+
SignedMailValidator.certExpired.details = The message was signed at {0,date} {0,time,full}. But the certificate expired at {1,date} {1,time,full}.
105+
106+
# not yet valid at signing time
107+
# {0} signing time
108+
# {1} notBefore date
109+
SignedMailValidator.certNotYetValid.title = Certificate not yet valid at signing time
110+
SignedMailValidator.certNotYetValid.text = The message was signed at {0,date} {0,time,full}. But the certificate is not valid before {1,date} {1,time,full}.
111+
SignedMailValidator.certNotYetValid.summary = The message was signed at {0,date} {0,time,full}. But the certificate is not valid before {1,date} {1,time,full}.
112+
SignedMailValidator.certNotYetValid.details = The message was signed at {0,date} {0,time,full}. But the certificate is not valid before {1,date} {1,time,full}.
113+
114+
# exception retrieving the signer certificate
115+
# {0} message of the underlying exception
116+
# {1} the underlying exception
117+
# {2} the name of the exception
118+
SignedMailValidator.exceptionRetrievingSignerCert.title = Exception retrieving the signer certificate
119+
SignedMailValidator.exceptionRetrievingSignerCert.text = Signature Validation failed. There was a {2} retrieving the signer certificate: {0}.
120+
SignedMailValidator.exceptionRetrievingSignerCert.summary = Signature Validation failed. There was a {2} retrieving the signer certificate.
121+
SignedMailValidator.exceptionRetrievingSignerCert.details = Signature Validation failed There was a {2} retrieving the signer certificate: {0}.
122+
123+
# exception verifying the signature
124+
# {0} message of the underlying exception
125+
# {1} the underlying exception
126+
# {2} the name of the exception
127+
SignedMailValidator.exceptionVerifyingSignature.title = Signature not verified
128+
SignedMailValidator.exceptionVerifyingSignature.text = Signature not verified. There was a {2}. Cause: {0}.
129+
SignedMailValidator.exceptionVerifyingSignature.summary = Signature not verified. There was a {2}.
130+
SignedMailValidator.exceptionVerifyingSignature.details = Signature not verified. There was a {2}. Cause: {0}.
131+
132+
# signature not verified
133+
SignedMailValidator.signatureNotVerified.title = Signature not verified
134+
SignedMailValidator.signatureNotVerified.text = Signature not verified. The public key of the signer does not correspond to the signature.
135+
SignedMailValidator.signatureNotVerified.summary = Signature not verified. The public key of the signer does not correspond to the signature.
136+
SignedMailValidator.signatureNotVerified.details = Signature not verified. The public key of the signer does not correspond to the signature.
137+
138+
# certificate key usage does not permit digitalSignature or nonRepudiation
139+
SignedMailValidator.signingNotPermitted.title = Key not usable for email signatures
140+
SignedMailValidator.signingNotPermitted.text = The key usage extension of signer certificate does not permit using the key for email signatures.
141+
SignedMailValidator.signingNotPermitted.summary = The signer key is not usable for email signatures.
142+
SignedMailValidator.signingNotPermitted.details = The key usage extension of signer certificate does not permit using the key for email signatures.
143+
144+
# certificate extended key usage does not permit emailProtection or anyExtendedKeyUsage
145+
SignedMailValidator.extKeyUsageNotPermitted.title = Key not usable for email signatures
146+
SignedMailValidator.extKeyUsageNotPermitted.text = The extended key usage extension of the signer certificate does not permit using the key for email signatures.
147+
SignedMailValidator.extKeyUsageNotPermitted.summary = The signer key is not usable for email signatures.
148+
SignedMailValidator.extKeyUsageNotPermitted.details = The extended key usage extension of the signer certificate does not permit using the key for email signatures.
149+
150+
# exception processing the extended key usage extension
151+
# {0} message of the underlying exception
152+
# {1} the underlying exception
153+
# {2} the name of the exception
154+
SignedMailValidator.extKeyUsageError.title = Exception processing the extended key usage extension
155+
SignedMailValidator.extKeyUsageError.text = There was a {2} processing the extended key usage extension. Cause: {0}.
156+
SignedMailValidator.extKeyUsageError.summary = There was a {2} processing the extended key usage extension.
157+
SignedMailValidator.extKeyUsageError.details = There was a {2} processing the extended key usage extension. Cause: {0}.
158+
159+
# cannot create certificate path (exception)
160+
# {0} message of the underlying exception
161+
# {1} the underlying exception
162+
# {2} the name of the exception
163+
SignedMailValidator.exceptionCreateCertPath.title = Certificate path validation failed
164+
SignedMailValidator.exceptionCreateCertPath.text = Certificate path validation failed. There was a {2} creating the CertPath: {0}.
165+
SignedMailValidator.exceptionCreateCertPath.summary = Certificate path validation failed. There was a {2} creating the CertPath: {0}.
166+
SignedMailValidator.exceptionCreateCertPath.details = Certificate path validation failed. There was a {2} creating the CertPath: {0}.
167+
168+
# certificate path is invalid
169+
SignedMailValidator.certPathInvalid.title = Certificate path invalid
170+
SignedMailValidator.certPathInvalid.text = The certificate path is invalid.
171+
SignedMailValidator.certPathInvalid.summary = The certificate path is invalid.
172+
SignedMailValidator.certPathInvalid.details = The certificate path is invalid.

0 commit comments

Comments
 (0)