diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-07 14:52:01 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-07 14:52:01 +0000 |
commit | db574d4297913a9acae96330c1a0269c2bc92bff (patch) | |
tree | 06fabdc3b6ffbc88837df831d68883dae0778461 /trunk/pdf-over-signator/src | |
parent | 94bf81d31e74a209d60f2fd4f1f20448770bf1a0 (diff) | |
download | pdf-over-db574d4297913a9acae96330c1a0269c2bc92bff.tar.gz pdf-over-db574d4297913a9acae96330c1a0269c2bc92bff.tar.bz2 pdf-over-db574d4297913a9acae96330c1a0269c2bc92bff.zip |
Added class templates
Old class files edited to match templates
Fixed missing comments
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12277 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-signator/src')
15 files changed, 295 insertions, 2 deletions
diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java index 812ddc88..15ba76f2 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java @@ -1,5 +1,24 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import java.io.ByteArrayInputStream; import java.io.InputStream; @@ -9,6 +28,12 @@ import java.io.InputStream; public class ByteArrayDocumentSource implements DocumentSource { /** + * SFL4J Logger instance + **/ + @SuppressWarnings("unused") + private static final Logger log = LoggerFactory.getLogger(ByteArrayDocumentSource.class); + + /** * Document content */ protected byte[] data; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/DocumentSource.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/DocumentSource.java index 8b444020..931fab41 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/DocumentSource.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/DocumentSource.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; import java.io.InputStream; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java index e86b7100..71f764d3 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; /** diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java index 9b393e46..508c42c9 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; /** diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLResponse.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLResponse.java index 88adc117..98328c07 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLResponse.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLResponse.java @@ -1,10 +1,34 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * Security Layer response */ public class SLResponse { + /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(Signator.class); + private String response; /** diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResult.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResult.java index 7a8d4d0d..1c0c5818 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResult.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResult.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; import java.security.cert.X509Certificate; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java index dc0986cf..a8f8b63a 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java @@ -1,12 +1,36 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; import java.security.cert.X509Certificate; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * The result of a signature operation */ public class SignResultImpl implements SignResult { + /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(Signator.class); + private SignaturePosition position; private DocumentSource source; private X509Certificate certificate; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signator.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signator.java index 4ba0b981..05492d5e 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signator.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signator.java @@ -1,15 +1,34 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; -import java.util.EnumMap; -import java.util.Map; +//Imports import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.EnumMap; +import java.util.Map; /** * PDF Signator Interface */ public class Signator { + /** + * SFL4J Logger instance + **/ private static Logger log = LoggerFactory.getLogger(Signator.class); /** diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java index 8d47cb19..c67af2c6 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java @@ -1,11 +1,35 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * The dimensions of the visible signature block */ public class SignatureDimension { /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(SignatureDimension.class); + + /** * The visible Signature block width */ protected int width; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java index d41ba24d..80a8ed5c 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java @@ -1,11 +1,35 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * Base class for signature exceptions */ public class SignatureException extends Exception { /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(SignatureException.class); + + /** * */ private static final long serialVersionUID = 711578398780816710L; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java index 3fa9c7ce..1edb997b 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java @@ -1,11 +1,35 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * The Signature Parameter */ public abstract class SignatureParameter { /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(SignatureParameter.class); + + /** * The Signature Position * @uml.property name="signaturePosition" * @uml.associationEnd diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java index 59fa4864..16aae296 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java @@ -1,10 +1,34 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Represents the position of a visible signature block */ public class SignaturePosition { + + /** + * SFL4J Logger instance + **/ + private static Logger log = LoggerFactory.getLogger(SignaturePosition.class); + /** * The x value of the position */ diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signer.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signer.java index fd7bee09..3c04da53 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signer.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Signer.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; /** diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignerFactory.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignerFactory.java index 6c0b6487..24b86300 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignerFactory.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignerFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; import at.asit.pdfover.signator.Signer; diff --git a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java index c1e82da3..02543d7a 100644 --- a/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java +++ b/trunk/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java @@ -1,3 +1,18 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signator; /** |