diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509')
10 files changed, 51 insertions, 93 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdditionalInformationSyntax.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdditionalInformationSyntax.java index ff9ed12..55c7d43 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdditionalInformationSyntax.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdditionalInformationSyntax.java @@ -54,9 +54,8 @@ public class AdditionalInformationSyntax /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * AdditionalInformationSyntax ::= DirectoryString (SIZE(1..2048)) * </pre> diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdmissionSyntax.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdmissionSyntax.java index 202373e..4943d52 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdmissionSyntax.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/AdmissionSyntax.java @@ -11,28 +11,28 @@ import org.bouncycastle.asn1.x509.GeneralName; /** * Attribute to indicate admissions to certain professions. - * <p/> + * * <pre> * AdmissionSyntax ::= SEQUENCE * { * admissionAuthority GeneralName OPTIONAL, * contentsOfAdmissions SEQUENCE OF Admissions * } - * <p/> + * * Admissions ::= SEQUENCE * { * admissionAuthority [0] EXPLICIT GeneralName OPTIONAL * namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL * professionInfos SEQUENCE OF ProfessionInfo * } - * <p/> + * * NamingAuthority ::= SEQUENCE * { * namingAuthorityId OBJECT IDENTIFIER OPTIONAL, * namingAuthorityUrl IA5String OPTIONAL, * namingAuthorityText DirectoryString(SIZE(1..128)) OPTIONAL * } - * <p/> + * * ProfessionInfo ::= SEQUENCE * { * namingAuthority [0] EXPLICIT NamingAuthority OPTIONAL, @@ -42,8 +42,7 @@ import org.bouncycastle.asn1.x509.GeneralName; * addProfessionInfo OCTET STRING OPTIONAL * } * </pre> - * <p/> - * <p/> + * <p> * ISIS-MTT PROFILE: The relatively complex structure of AdmissionSyntax * supports the following concepts and requirements: * <ul> @@ -68,7 +67,7 @@ import org.bouncycastle.asn1.x509.GeneralName; * component namingAuthorityId are grouped under the OID-branch * id-isis-at-namingAuthorities and must be applied for. * <li>See - * http://www.teletrust.de/anwend.asp?Id=30200&Sprache=E_&HomePG=0 for + * http://www.teletrust.de/anwend.asp?Id=30200&Sprache=E_&HomePG=0 for * an application form and http://www.teletrust.de/links.asp?id=30220,11 * for an overview of registered naming authorities. * <li> By means of the data type ProfessionInfo certain professions, @@ -80,7 +79,7 @@ import org.bouncycastle.asn1.x509.GeneralName; * addProfessionInfo may contain additional applicationspecific information in * DER-encoded form. * </ul> - * <p/> + * <p> * By means of different namingAuthority-OIDs or profession OIDs hierarchies of * professions, specializations, disciplines, fields of activity, etc. can be * expressed. The issuing admission authority should always be indicated (field @@ -89,9 +88,7 @@ import org.bouncycastle.asn1.x509.GeneralName; * naming authority by the exclusive use of the component professionItems. In * this case the certification authority is responsible for the verification of * the admission information. - * <p/> - * <p/> - * <p/> + * <p> * This attribute is single-valued. Still, several admissions can be captured in * the sequence structure of the component contentsOfAdmissions of * AdmissionSyntax or in the component professionInfos of Admissions. The @@ -102,7 +99,7 @@ import org.bouncycastle.asn1.x509.GeneralName; * value for the component namingAuthority of ProfessionInfo. Within the latter * component the default value can be overwritten, in case that another naming * authority needs to be recorded. - * <p/> + * <p> * The length of the string objects is limited to 128 characters. It is * recommended to indicate a namingAuthorityURL in all issued attribute * certificates. If a namingAuthorityURL is indicated, the field professionItems @@ -143,30 +140,29 @@ public class AdmissionSyntax /** * Constructor from ASN1Sequence. - * <p/> + * <p> * The sequence is of type ProcurationSyntax: - * <p/> * <pre> * AdmissionSyntax ::= SEQUENCE * { * admissionAuthority GeneralName OPTIONAL, * contentsOfAdmissions SEQUENCE OF Admissions * } - * <p/> + * * Admissions ::= SEQUENCE * { * admissionAuthority [0] EXPLICIT GeneralName OPTIONAL * namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL * professionInfos SEQUENCE OF ProfessionInfo * } - * <p/> + * * NamingAuthority ::= SEQUENCE * { * namingAuthorityId OBJECT IDENTIFIER OPTIONAL, * namingAuthorityUrl IA5String OPTIONAL, * namingAuthorityText DirectoryString(SIZE(1..128)) OPTIONAL * } - * <p/> + * * ProfessionInfo ::= SEQUENCE * { * namingAuthority [0] EXPLICIT NamingAuthority OPTIONAL, @@ -176,7 +172,7 @@ public class AdmissionSyntax * addProfessionInfo OCTET STRING OPTIONAL * } * </pre> - * + * </p> * @param seq The ASN.1 sequence. */ private AdmissionSyntax(ASN1Sequence seq) @@ -209,30 +205,29 @@ public class AdmissionSyntax /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * AdmissionSyntax ::= SEQUENCE * { * admissionAuthority GeneralName OPTIONAL, * contentsOfAdmissions SEQUENCE OF Admissions * } - * <p/> + * * Admissions ::= SEQUENCE * { * admissionAuthority [0] EXPLICIT GeneralName OPTIONAL * namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL * professionInfos SEQUENCE OF ProfessionInfo * } - * <p/> + * * NamingAuthority ::= SEQUENCE * { * namingAuthorityId OBJECT IDENTIFIER OPTIONAL, * namingAuthorityUrl IA5String OPTIONAL, * namingAuthorityText DirectoryString(SIZE(1..128)) OPTIONAL * } - * <p/> + * * ProfessionInfo ::= SEQUENCE * { * namingAuthority [0] EXPLICIT NamingAuthority OPTIONAL, diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Admissions.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Admissions.java index 3a5ef24..bda1514 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Admissions.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Admissions.java @@ -14,7 +14,6 @@ import org.bouncycastle.asn1.x509.GeneralName; /** * An Admissions structure. - * <p/> * <pre> * Admissions ::= SEQUENCE * { @@ -22,7 +21,6 @@ import org.bouncycastle.asn1.x509.GeneralName; * namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL * professionInfos SEQUENCE OF ProfessionInfo * } - * <p/> * </pre> * * @see org.bouncycastle.asn1.isismtt.x509.AdmissionSyntax @@ -56,9 +54,8 @@ public class Admissions /** * Constructor from ASN1Sequence. - * <p/> + * <p> * The sequence is of type ProcurationSyntax: - * <p/> * <pre> * Admissions ::= SEQUENCE * { @@ -67,7 +64,7 @@ public class Admissions * professionInfos SEQUENCE OF ProfessionInfo * } * </pre> - * + * </p> * @param seq The ASN.1 sequence. */ private Admissions(ASN1Sequence seq) @@ -117,7 +114,7 @@ public class Admissions /** * Constructor from a given details. - * <p/> + * <p> * Parameter <code>professionInfos</code> is mandatory. * * @param admissionAuthority The admission authority. @@ -155,9 +152,8 @@ public class Admissions /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * Admissions ::= SEQUENCE * { @@ -165,7 +161,6 @@ public class Admissions * namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL * professionInfos SEQUENCE OF ProfessionInfo * } - * <p/> * </pre> * * @return an ASN1Primitive diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/DeclarationOfMajority.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/DeclarationOfMajority.java index 20887ce..987c590 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/DeclarationOfMajority.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/DeclarationOfMajority.java @@ -15,7 +15,7 @@ import org.bouncycastle.asn1.DERTaggedObject; /** * A declaration of majority. - * <p/> + * * <pre> * DeclarationOfMajoritySyntax ::= CHOICE * { @@ -28,7 +28,7 @@ import org.bouncycastle.asn1.DERTaggedObject; * dateOfBirth [2] IMPLICIT GeneralizedTime * } * </pre> - * <p/> + * <p> * fullAgeAtCountry indicates the majority of the owner with respect to the laws * of a specific country. */ @@ -101,9 +101,8 @@ public class DeclarationOfMajority /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * DeclarationOfMajoritySyntax ::= CHOICE * { diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/MonetaryLimit.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/MonetaryLimit.java index 1b10199..7425287 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/MonetaryLimit.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/MonetaryLimit.java @@ -17,11 +17,10 @@ import org.bouncycastle.asn1.DERSequence; * since January 1, 2004. For the sake of backward compatibility with * certificates already in use, components SHOULD support MonetaryLimit (as well * as QcEuLimitValue). - * <p/> + * <p> * Indicates a monetary limit within which the certificate holder is authorized * to act. (This value DOES NOT express a limit on the liability of the * certification authority). - * <p/> * <pre> * MonetaryLimitSyntax ::= SEQUENCE * { @@ -30,9 +29,9 @@ import org.bouncycastle.asn1.DERSequence; * exponent INTEGER * } * </pre> - * <p/> + * <p> * currency must be the ISO code. - * <p/> + * <p> * value = amount�10*exponent */ public class MonetaryLimit @@ -72,8 +71,7 @@ public class MonetaryLimit /** * Constructor from a given details. - * <p/> - * <p/> + * <p> * value = amount�10^exponent * * @param currency The currency. Must be the ISO code. @@ -104,9 +102,8 @@ public class MonetaryLimit /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * MonetaryLimitSyntax ::= SEQUENCE * { diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/NamingAuthority.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/NamingAuthority.java index 237f5e5..9a123c3 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/NamingAuthority.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/NamingAuthority.java @@ -11,7 +11,6 @@ import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.ASN1String; import org.bouncycastle.asn1.ASN1TaggedObject; import org.bouncycastle.asn1.DERIA5String; -import org.bouncycastle.asn1.DERObjectIdentifier; import org.bouncycastle.asn1.DERSequence; import org.bouncycastle.asn1.isismtt.ISISMTTObjectIdentifiers; import org.bouncycastle.asn1.x500.DirectoryString; @@ -71,8 +70,6 @@ public class NamingAuthority /** * Constructor from ASN1Sequence. - * <p/> - * <p/> * <pre> * NamingAuthority ::= SEQUENCE * { @@ -173,27 +170,9 @@ public class NamingAuthority return namingAuthorityUrl; } - /** - * Constructor from given details. - * <p/> - * All parameters can be combined. - * - * @param namingAuthorityId ObjectIdentifier for naming authority. - * @param namingAuthorityUrl URL for naming authority. - * @param namingAuthorityText Textual representation of naming authority. - * @deprecated use ASN1ObjectIdentifier method - */ - public NamingAuthority(DERObjectIdentifier namingAuthorityId, - String namingAuthorityUrl, DirectoryString namingAuthorityText) - { - this.namingAuthorityId = new ASN1ObjectIdentifier(namingAuthorityId.getId()); - this.namingAuthorityUrl = namingAuthorityUrl; - this.namingAuthorityText = namingAuthorityText; - } - /** * Constructor from given details. - * <p/> + * <p> * All parameters can be combined. * * @param namingAuthorityId ObjectIdentifier for naming authority. @@ -210,9 +189,8 @@ public class NamingAuthority /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * NamingAuthority ::= SEQUENCE * { diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProcurationSyntax.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProcurationSyntax.java index 0a64f8e..506f75a 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProcurationSyntax.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProcurationSyntax.java @@ -75,23 +75,22 @@ public class ProcurationSyntax /** * Constructor from ASN1Sequence. - * <p/> + * <p> * The sequence is of type ProcurationSyntax: - * <p/> * <pre> * ProcurationSyntax ::= SEQUENCE { * country [1] EXPLICIT PrintableString(SIZE(2)) OPTIONAL, * typeOfSubstitution [2] EXPLICIT DirectoryString (SIZE(1..128)) OPTIONAL, * signingFor [3] EXPLICIT SigningFor * } - * <p/> + * * SigningFor ::= CHOICE * { * thirdPerson GeneralName, * certRef IssuerSerial * } * </pre> - * + * </p> * @param seq The ASN.1 sequence. */ private ProcurationSyntax(ASN1Sequence seq) @@ -132,8 +131,7 @@ public class ProcurationSyntax /** * Constructor from a given details. - * <p/> - * <p/> + * <p> * Either <code>generalName</code> or <code>certRef</code> MUST be * <code>null</code>. * @@ -154,8 +152,7 @@ public class ProcurationSyntax /** * Constructor from a given details. - * <p/> - * <p/> + * <p> * Either <code>generalName</code> or <code>certRef</code> MUST be * <code>null</code>. * @@ -196,16 +193,15 @@ public class ProcurationSyntax /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * ProcurationSyntax ::= SEQUENCE { * country [1] EXPLICIT PrintableString(SIZE(2)) OPTIONAL, * typeOfSubstitution [2] EXPLICIT DirectoryString (SIZE(1..128)) OPTIONAL, * signingFor [3] EXPLICIT SigningFor * } - * <p/> + * * SigningFor ::= CHOICE * { * thirdPerson GeneralName, diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProfessionInfo.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProfessionInfo.java index 081d9af..e0f94be 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProfessionInfo.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/ProfessionInfo.java @@ -178,8 +178,6 @@ public class ProfessionInfo /** * Constructor from ASN1Sequence. - * <p/> - * <p/> * <pre> * ProfessionInfo ::= SEQUENCE * { @@ -274,7 +272,7 @@ public class ProfessionInfo /** * Constructor from given details. - * <p/> + * <p> * <code>professionItems</code> is mandatory, all other parameters are * optional. * @@ -311,9 +309,8 @@ public class ProfessionInfo /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * ProfessionInfo ::= SEQUENCE * { diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Restriction.java b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Restriction.java index c2a2a41..1a72bea 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Restriction.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/Restriction.java @@ -6,7 +6,7 @@ import org.bouncycastle.asn1.x500.DirectoryString; /** * Some other restriction regarding the usage of this certificate. - * <p/> + * * <pre> * RestrictionSyntax ::= DirectoryString (SIZE(1..1024)) * </pre> @@ -33,13 +33,12 @@ public class Restriction /** * Constructor from DirectoryString. - * <p/> + * <p> * The DirectoryString is of type RestrictionSyntax: - * <p/> * <pre> * RestrictionSyntax ::= DirectoryString (SIZE(1..1024)) * </pre> - * + * </p> * @param restriction A DirectoryString. */ private Restriction(DirectoryString restriction) @@ -64,12 +63,10 @@ public class Restriction /** * Produce an object suitable for an ASN1OutputStream. - * <p/> + * <p> * Returns: - * <p/> * <pre> * RestrictionSyntax ::= DirectoryString (SIZE(1..1024)) - * <p/> * </pre> * * @return a DERObject diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/package.html b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/package.html new file mode 100644 index 0000000..fa411ec --- /dev/null +++ b/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/x509/package.html @@ -0,0 +1,5 @@ +<html> +<body bgcolor="#ffffff"> +Support classes for the ISIS-MTT X.509 Certificate Extensions. +</body> +</html> |