Home
last modified time | relevance | path

Searched refs:GTException (Results 1 – 25 of 46) sorted by relevance

12

/plugin/gtime/gtlib/tsp/
DGTDataHash.php88 * @throws GTException
95 throw new GTException("parameter hashAlgorithm must not be empty");
99 throw new GTException("parameter hashAlgorithm must be an instance of GTHashAlgorithm");
109 …throw new GTException("Unable to init GTDataHash with algorithm: {$this->hashAlgorithm->getName()}…
115 throw new GTException("hash must be an array of bytes");
119 … throw new GTException("hash length does not match with that defined in hash algorithm");
131 * @throws GTException
138 throw new GTException("hash calculator already closed");
142 throw new GTException("parameter bytes must not be empty");
148 throw new GTException("hash update failed with unknown error");
[all …]
DGTTimestamp.php197 * @throws GTException
213 … throw new GTException("Invalid signerInfos size: " . count($signedData->getSignerInfos()));
220 throw new GTException("Missing signerInfo.sid");
227 throw new GTException("Missing signerInfo.sid.issuerAndSerialNumber");
232 …throw new GTException("Unsupported digestAlgorithm: {$signerInfo->getDigestAlgorithm()->getAlgorit…
237 …throw new GTException("Unsupported signatureAlgorithm: {$signerInfo->getSignatureAlgorithm()->getA…
243 throw new GTException("Signed attributes missing");
247 throw new GTException("Signed attributes invalid size: " . count($signedAttributes));
254 … throw new GTException("Expecting content-type signedAttr, but found: " . $contentType->getType());
258 …throw new GTException("Expecting message-digest signedAttr, but found: " . $messageDigest->getType…
[all …]
DGTPublicationsFile.php76 * @throws GTException
82 throw new GTException("Parameter bytes is required");
89 throw new GTException("Invalid publications file length: " + count($this->content));
96 throw new GTException("Unsupported publications file version: " . $version);
103 throw new GTException("Invalid publications block offset: " . $publicationBlockBegin);
113 throw new GTException("Invalid publications block offset: " . $publicKeyBlockBegin);
123 …throw new GTException("Invalid publication reference block offset: " . $publicationReferenceBlockB…
130 throw new GTException("Invalid signature block offset: " . $signatureBlockBegin);
305 * @throws GTException
314 throw new GTException("publicKey must be an instance of GTDataHash");
[all …]
DGTHashAlgorithm.php125 * @throws GTException if there is no algorithm with the given name.
131 throw new GTException("parameter name must not be empty");
147 throw new GTException("Unsupported hash algorithm name: {$name}");
155 * @throws GTException if there is no algorithm with the given OID
162 throw new GTException("parameter oid must not be empty");
171 throw new GTException("Unsupported hash algorithm oid: {$oid}");
179 * @throws GTException if there is no algorithm with the given GTID.
195 throw new GTException("Unsupported hash algorithm gtid: {$gtid}");
DGTVerifier.php35 * @throws GTException
59 throw new GTException("Invalid timestamp: no certificates");
87 * @throws GTException
109 … throw new GTException("Unable to verify timeSignature that is not extended with publication");
121 * @throws GTException
157 throw new GTException("Invalid signed attributes: null");
190 * @throws GTException
200 throw new GTException("Parameter messageImprint is required");
245 } catch (GTException $e) {
290 * @throws GTException
[all …]
/plugin/gtime/gtlib/util/
DGTUtil.php78 * @throws GTException when the result is too big to fit into {@code int}
96 throw new GTException("Integer overflow");
112 * @throws GTException
122 throw new GTException("parameter file is required");
126 throw new GTException("parameter bytes is required");
130 throw new GTException("parameter bytes must be an array");
136 throw new GTException("Unable to open file {$file} for writing");
140 throw new GTException("Unable to write to bytes to file {$file}");
144 throw new GTException("Unable to close file after writing {$file}");
153 * @throws GTException
[all …]
DGTBaseX.php50 * @throws GTException
66 throw new GTException("The size of the encoding alphabet is not a power of 2");
104 throw new GTException("The padding character appears in the encoding alphabet");
116 * @throws GTException
127 throw new GTException("parameter bytes is required");
131 throw new GTException("parameter bytes must be an array of bytes");
146 throw new GTException("parameter offset out of bounds");
150 throw new GTException("parameter length out of bounds");
162 … throw new GTException("parameter separator contains characters from the encoding alphabet");
219 * @throws GTException
[all …]
/plugin/gtime/gtlib/asn1/
DASN1DER.php35 * @throws GTException
42 throw new GTException("Unable to encode object that is not DEREncodable");
108 * @throws GTException
115 throw new GTException("parameter bytes is required");
122 throw new GTException("Invalid DER stream, not enough bytes");
126 throw new GTException("Invalid DER stream, too many trailing bytes");
138 * @throws GTException
145 throw new GTException("parameter bytes must be an array of bytes");
149 throw new GTException("Invalid DER stream, not enough bytes to decode length");
155 throw new GTException("indefinite length encoding not allowed for DER");
[all …]
/plugin/gtime/gtlib/asn1/x509/
DX509GeneralName.php74 * @throws GTException
81 throw new GTException("Expecting an ASN1Tag");
85 throw new GTException("Unknown TAG value: {$object->getTagValue()}");
95 * @throws GTException
107 throw new GTException("[0] not implemented");
116 throw new GTException("[3] not implemented");
119 throw new GTException("[4] not implemented");
122 throw new GTException("[5] not implemented");
128 throw new GTException("[7] not implemented");
134 throw new GTException("Unknown TAG value {$this->object->getTagValue()}");
DX509Certificate.php47 * @throws GTException
60 …throw new GTException("paramater data must be an array of bytes or an instance of ASN1DEREncodable…
118 throw new GTException("Parameter data is required");
122 throw new GTException("Parameter sign is required");
180 * @throws GTException
208 throw new GTException("Specified cainfo file does not exist: {$cainfo}");
214 throw new GTException("Invalid cainfo specified: " . $cainfo);
230 * @throws GTException
237 throw new GTException("Parameter pkey must be a valid resource of type OpenSSL key");
262 * @throws GTException
[all …]
DX509Extension.php54 * @throws GTException
61 throw new GTException("Expecting an ASN1Sequence");
67 throw new GTException("Invalid sequence size: {$size}");
73 throw new GTException("Expecting an ASN1ObjectId");
83 throw new GTException("Expecting an ASN1OctetString");
94 throw new GTException("Expecting an ASN1Boolean");
102 throw new GTException("Expecting an ASN1OctetString");
108 throw new GTException("Invalid sequence size: {$size}");
DX509AlgorithmIdentifier.php51 * @throws GTException
58 throw new GTException("object must be an instance of ASN1Sequence");
62 throw new GTException("sequence must contain at least 1 object");
66 throw new GTException("sequence must not contain more than 2 objects");
70 throw new GTException("parameters not implemented");
76 throw new GTException("algorithm must be an instance of ASN1ObjectId");
/plugin/gtime/gtlib/asn1/tsp/
DTSPAccuracy.php56 * @throws GTException
63 throw new GTException("Expecting an ASN1Sequence");
67 throw new GTException("Invalid number of elements in sequence");
77 throw new GTException("Unexpected ASN1Integer: {$item->getValue()}");
81 throw new GTException("Unexpected ASN1Integer: {$item->getValue()}");
95 throw new GTException("Unexpected TAG value: 0");
101 throw new GTException("Expecting an ASN1Integer");
105 … throw new GTException("Invalid value for millis: {$millis->getValue()}");
109 … throw new GTException("Invalid value for millis: {$millis->getValue()}");
121 throw new GTException("Unexpected TAG value: 1");
[all …]
DTSPMessageImprint.php56 * @throws GTException
63 throw new GTException("object must be an instance of ASN1Sequence");
67 throw new GTException("object must have the size of 2");
76 throw new GTException("Expecting an ASN1OctetString");
104 * @throws GTException
111 throw new GTException("hashAlgorithm must be an instance of X509AlgorithmIdentifier");
129 * @throws GTException
136 throw new GTException("hashedMessage must be an array of bytes");
DTSPTimeStampResp.php54 * @throws GTException
61 throw new GTException("object must be an instance of ASN1Sequence");
65 throw new GTException("invalid sequence size");
78 throw new GTException("timestamp token is missing");
89 throw new GTException("unexpected timestamp token");
94 throw new GTException("invalid status code: {$code}");
DTSPTSTInfo.php75 * @throws GTException
82 throw new GTException("Expecting an ASN1Sequence");
88 throw new GTException("Invalid sequence size: {$size}");
94 throw new GTException("Expecting an ASN1Integer");
100 throw new GTException("Invalid version: {$this->version}");
106 throw new GTException("Expecting an ASN1ObjectId");
119 throw new GTException("Expecting an ASN1Integer");
127 throw new GTException("Expecting an ASN1GeneralizedTime");
188 … throw new GTException("Unknown critical extension present: {$extension->getId()}");
196 throw new GTException("Unknown TAG in TSTINFO: " . $item->getTagValue());
[all …]
/plugin/gtime/gtlib/asn1/cms/
DCMSSignedData.php67 * @throws GTException
74 throw new GTException("Expecting an ASN1Sequence");
80 throw new GTException("Invalid sequence size: {$size}");
86 throw new GTException("Expecting an ASN1Integer");
92 throw new GTException("Invalid version: {$this->version}");
98 throw new GTException("Expecting an ASN1Set");
134 throw new GTException("Certificates size: 0");
140 … throw new GTException("Certificate should be encoded as an ASN1Sequence");
144 throw new GTException("Certificate content missing");
156 throw new GTException("Certificate revocation lists not implemented");
[all …]
DCMSEncapsulatedContentInfo.php55 * @throws GTException
62 throw new GTException("Expecting an ASN1Sequence");
66 throw new GTException("Invalid sequence size: {$object->getObjectCount()}");
72 throw new GTException("Expecting an ASN1ObjectId");
82 throw new GTException("Expecting an ASN1Tag");
86 throw new GTException("Unexpected tag value: {$tag->getTagValue()}");
121 * @throws GTException
127 throw new GTException("Content missing");
131 throw new GTException("Invalid contentType for TSTInfo: {$this->contentType}");
DCMSAttribute.php58 * @throws GTException
65 throw new GTException("Expecting an ASN1Sequence");
71 throw new GTException("Invalid sequence size: {$size}");
77 throw new GTException("Expecting an ASN1ObjectId");
87 throw new GTException("Expecting an ASN1Set");
93 throw new GTException("Missing attribute values");
DCMSIssuerAndSerialNumber.php58 * @throws GTException
65 throw new GTException("Expecting an ASN1Sequence");
71 throw new GTException("Invalid sequence size: {$size}");
77 throw new GTException("Expecting an ASN1Sequence");
81 throw new GTException("Issuer content missing");
89 throw new GTException("Expecting an ASN1Integer");
DCMSContentInfo.php57 * @throws GTException
64 throw new GTException("Expecting an ASN1Sequence");
68 throw new GTException("Bad sequence size: {$object->getObjectCount()}");
74 throw new GTException("Expecting an ASN1ObjectId");
82 throw new GTException("Bad tag value for content: " . $tag->getTagValue());
98 throw new GTException("Unsupported content type: {$this->contentType}");
DCMSSignerInfo.php64 * @throws GTException
71 throw new GTException("Expecting an ASN1Sequence");
77 throw new GTException("Invalid sequence size: {$size}");
83 throw new GTException("Expecting an ASN1Integer for version");
89 throw new GTException("Invalid version: {$this->version}");
144 throw new GTException("Unsupported TAG value: " . $item->getTagValue());
162 throw new GTException("Unexpected ASN.1 TYPE: " . get_class($item));
168 throw new GTException("Signature missing");
172 throw new GTException("Signature algorithm missing");
/plugin/gtime/gtlib/
Dguardtime.php116 throw new GTException("BCMath extension is required by GuardTime PHP SDK");
120 throw new GTException("CURL extension is required by GuardTime PHP SDK");
124 throw new GTException("PHP version 5.3.0 or greater is required by GuardTime PHP SDK");
128 throw new GTException("Hash extension is required by GuardTime PHP SDK");
132 throw new GTException("OpenSSL extension is required by GuardTime PHP SDK");
136 …throw new GTException("OpenSSL version 0.9.8 or later is reqquired by GuardTime PHP SDK, current: …
/plugin/gtime/gtlib/asn1/gt/
DGTCertTokenResponse.php52 * @throws GTException
59 throw new GTException("object must be an instance of ASN1Sequence");
63 throw new GTException("invalid sequence size");
76 throw new GTException("token is missing");
82 throw new GTException("Unexpected tag value: " . $tag->getTagValue());
93 throw new GTException("unexpected timestamp token");
98 throw new GTException("invalid status code: {$code}");
124 * @throws GTException
DGTVerificationRequest.php55 * @throws GTException
62 throw new GTException("Expecting an ASN1Sequence");
68 throw new GTException("Invalid sequence size: {$size}");
74 throw new GTException("Expecting an ASN1Integer as version");
80 throw new GTException("Invalid value for version: {$this->version}");
91 throw new GTException("Expecting an ASN1OctetString as data");

12