提交 30d260a8 编写于 作者: J juh

8017326: Cleanup of the javadoc <code> tag in java.security.spec

Summary: Convert javadoc <code> and <tt> tags to {@code ...}
Reviewed-by: darcy
上级 c2a5f680
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -41,13 +41,13 @@ public final class DSAGenParameterSpec implements AlgorithmParameterSpec { ...@@ -41,13 +41,13 @@ public final class DSAGenParameterSpec implements AlgorithmParameterSpec {
/** /**
* Creates a domain parameter specification for DSA parameter * Creates a domain parameter specification for DSA parameter
* generation using <code>primePLen</code> and <code>subprimeQLen</code>. * generation using {@code primePLen} and {@code subprimeQLen}.
* The value of <code>subprimeQLen</code> is also used as the default * The value of {@code subprimeQLen} is also used as the default
* length of the domain parameter seed in bits. * length of the domain parameter seed in bits.
* @param primePLen the desired length of the prime P in bits. * @param primePLen the desired length of the prime P in bits.
* @param subprimeQLen the desired length of the sub-prime Q in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits.
* @exception IllegalArgumentException if <code>primePLen</code> * @exception IllegalArgumentException if {@code primePLen}
* or <code>subprimeQLen</code> is illegal per the specification of * or {@code subprimeQLen} is illegal per the specification of
* FIPS 186-3. * FIPS 186-3.
*/ */
public DSAGenParameterSpec(int primePLen, int subprimeQLen) { public DSAGenParameterSpec(int primePLen, int subprimeQLen) {
...@@ -56,14 +56,14 @@ public final class DSAGenParameterSpec implements AlgorithmParameterSpec { ...@@ -56,14 +56,14 @@ public final class DSAGenParameterSpec implements AlgorithmParameterSpec {
/** /**
* Creates a domain parameter specification for DSA parameter * Creates a domain parameter specification for DSA parameter
* generation using <code>primePLen</code>, <code>subprimeQLen</code>, * generation using {@code primePLen}, {@code subprimeQLen},
* and <code>seedLen</code>. * and {@code seedLen}.
* @param primePLen the desired length of the prime P in bits. * @param primePLen the desired length of the prime P in bits.
* @param subprimeQLen the desired length of the sub-prime Q in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits.
* @param seedLen the desired length of the domain parameter seed in bits, * @param seedLen the desired length of the domain parameter seed in bits,
* shall be equal to or greater than <code>subprimeQLen</code>. * shall be equal to or greater than {@code subprimeQLen}.
* @exception IllegalArgumentException if <code>primePLenLen</code>, * @exception IllegalArgumentException if {@code primePLenLen},
* <code>subprimeQLen</code>, or <code>seedLen</code> is illegal per the * {@code subprimeQLen}, or {@code seedLen} is illegal per the
* specification of FIPS 186-3. * specification of FIPS 186-3.
*/ */
public DSAGenParameterSpec(int primePLen, int subprimeQLen, int seedLen) { public DSAGenParameterSpec(int primePLen, int subprimeQLen, int seedLen) {
......
/* /*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -61,27 +61,27 @@ java.security.interfaces.DSAParams { ...@@ -61,27 +61,27 @@ java.security.interfaces.DSAParams {
} }
/** /**
* Returns the prime <code>p</code>. * Returns the prime {@code p}.
* *
* @return the prime <code>p</code>. * @return the prime {@code p}.
*/ */
public BigInteger getP() { public BigInteger getP() {
return this.p; return this.p;
} }
/** /**
* Returns the sub-prime <code>q</code>. * Returns the sub-prime {@code q}.
* *
* @return the sub-prime <code>q</code>. * @return the sub-prime {@code q}.
*/ */
public BigInteger getQ() { public BigInteger getQ() {
return this.q; return this.q;
} }
/** /**
* Returns the base <code>g</code>. * Returns the base {@code g}.
* *
* @return the base <code>g</code>. * @return the base {@code g}.
*/ */
public BigInteger getG() { public BigInteger getG() {
return this.g; return this.g;
......
/* /*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -69,36 +69,36 @@ public class DSAPrivateKeySpec implements KeySpec { ...@@ -69,36 +69,36 @@ public class DSAPrivateKeySpec implements KeySpec {
} }
/** /**
* Returns the private key <code>x</code>. * Returns the private key {@code x}.
* *
* @return the private key <code>x</code>. * @return the private key {@code x}.
*/ */
public BigInteger getX() { public BigInteger getX() {
return this.x; return this.x;
} }
/** /**
* Returns the prime <code>p</code>. * Returns the prime {@code p}.
* *
* @return the prime <code>p</code>. * @return the prime {@code p}.
*/ */
public BigInteger getP() { public BigInteger getP() {
return this.p; return this.p;
} }
/** /**
* Returns the sub-prime <code>q</code>. * Returns the sub-prime {@code q}.
* *
* @return the sub-prime <code>q</code>. * @return the sub-prime {@code q}.
*/ */
public BigInteger getQ() { public BigInteger getQ() {
return this.q; return this.q;
} }
/** /**
* Returns the base <code>g</code>. * Returns the base {@code g}.
* *
* @return the base <code>g</code>. * @return the base {@code g}.
*/ */
public BigInteger getG() { public BigInteger getG() {
return this.g; return this.g;
......
/* /*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -69,36 +69,36 @@ public class DSAPublicKeySpec implements KeySpec { ...@@ -69,36 +69,36 @@ public class DSAPublicKeySpec implements KeySpec {
} }
/** /**
* Returns the public key <code>y</code>. * Returns the public key {@code y}.
* *
* @return the public key <code>y</code>. * @return the public key {@code y}.
*/ */
public BigInteger getY() { public BigInteger getY() {
return this.y; return this.y;
} }
/** /**
* Returns the prime <code>p</code>. * Returns the prime {@code p}.
* *
* @return the prime <code>p</code>. * @return the prime {@code p}.
*/ */
public BigInteger getP() { public BigInteger getP() {
return this.p; return this.p;
} }
/** /**
* Returns the sub-prime <code>q</code>. * Returns the sub-prime {@code q}.
* *
* @return the sub-prime <code>q</code>. * @return the sub-prime {@code q}.
*/ */
public BigInteger getQ() { public BigInteger getQ() {
return this.q; return this.q;
} }
/** /**
* Returns the base <code>g</code>. * Returns the base {@code g}.
* *
* @return the base <code>g</code>. * @return the base {@code g}.
*/ */
public BigInteger getG() { public BigInteger getG() {
return this.g; return this.g;
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -45,9 +45,9 @@ public class ECFieldF2m implements ECField { ...@@ -45,9 +45,9 @@ public class ECFieldF2m implements ECField {
/** /**
* Creates an elliptic curve characteristic 2 finite * Creates an elliptic curve characteristic 2 finite
* field which has 2^<code>m</code> elements with normal basis. * field which has 2^{@code m} elements with normal basis.
* @param m with 2^<code>m</code> being the number of elements. * @param m with 2^{@code m} being the number of elements.
* @exception IllegalArgumentException if <code>m</code> * @exception IllegalArgumentException if {@code m}
* is not positive. * is not positive.
*/ */
public ECFieldF2m(int m) { public ECFieldF2m(int m) {
...@@ -61,24 +61,24 @@ public class ECFieldF2m implements ECField { ...@@ -61,24 +61,24 @@ public class ECFieldF2m implements ECField {
/** /**
* Creates an elliptic curve characteristic 2 finite * Creates an elliptic curve characteristic 2 finite
* field which has 2^<code>m</code> elements with * field which has 2^{@code m} elements with
* polynomial basis. * polynomial basis.
* The reduction polynomial for this field is based * The reduction polynomial for this field is based
* on <code>rp</code> whose i-th bit correspondes to * on {@code rp} whose i-th bit correspondes to
* the i-th coefficient of the reduction polynomial.<p> * the i-th coefficient of the reduction polynomial.<p>
* Note: A valid reduction polynomial is either a * Note: A valid reduction polynomial is either a
* trinomial (X^<code>m</code> + X^<code>k</code> + 1 * trinomial (X^{@code m} + X^{@code k} + 1
* with <code>m</code> > <code>k</code> >= 1) or a * with {@code m} &gt; {@code k} &gt;= 1) or a
* pentanomial (X^<code>m</code> + X^<code>k3</code> * pentanomial (X^{@code m} + X^{@code k3}
* + X^<code>k2</code> + X^<code>k1</code> + 1 with * + X^{@code k2} + X^{@code k1} + 1 with
* <code>m</code> > <code>k3</code> > <code>k2</code> * {@code m} &gt; {@code k3} &gt; {@code k2}
* > <code>k1</code> >= 1). * &gt; {@code k1} &gt;= 1).
* @param m with 2^<code>m</code> being the number of elements. * @param m with 2^{@code m} being the number of elements.
* @param rp the BigInteger whose i-th bit corresponds to * @param rp the BigInteger whose i-th bit corresponds to
* the i-th coefficient of the reduction polynomial. * the i-th coefficient of the reduction polynomial.
* @exception NullPointerException if <code>rp</code> is null. * @exception NullPointerException if {@code rp} is null.
* @exception IllegalArgumentException if <code>m</code> * @exception IllegalArgumentException if {@code m}
* is not positive, or <code>rp</code> does not represent * is not positive, or {@code rp} does not represent
* a valid reduction polynomial. * a valid reduction polynomial.
*/ */
public ECFieldF2m(int m, BigInteger rp) { public ECFieldF2m(int m, BigInteger rp) {
...@@ -106,28 +106,28 @@ public class ECFieldF2m implements ECField { ...@@ -106,28 +106,28 @@ public class ECFieldF2m implements ECField {
/** /**
* Creates an elliptic curve characteristic 2 finite * Creates an elliptic curve characteristic 2 finite
* field which has 2^<code>m</code> elements with * field which has 2^{@code m} elements with
* polynomial basis. The reduction polynomial for this * polynomial basis. The reduction polynomial for this
* field is based on <code>ks</code> whose content * field is based on {@code ks} whose content
* contains the order of the middle term(s) of the * contains the order of the middle term(s) of the
* reduction polynomial. * reduction polynomial.
* Note: A valid reduction polynomial is either a * Note: A valid reduction polynomial is either a
* trinomial (X^<code>m</code> + X^<code>k</code> + 1 * trinomial (X^{@code m} + X^{@code k} + 1
* with <code>m</code> > <code>k</code> >= 1) or a * with {@code m} &gt; {@code k} &gt;= 1) or a
* pentanomial (X^<code>m</code> + X^<code>k3</code> * pentanomial (X^{@code m} + X^{@code k3}
* + X^<code>k2</code> + X^<code>k1</code> + 1 with * + X^{@code k2} + X^{@code k1} + 1 with
* <code>m</code> > <code>k3</code> > <code>k2</code> * {@code m} &gt; {@code k3} &gt; {@code k2}
* > <code>k1</code> >= 1), so <code>ks</code> should * &gt; {@code k1} &gt;= 1), so {@code ks} should
* have length 1 or 3. * have length 1 or 3.
* @param m with 2^<code>m</code> being the number of elements. * @param m with 2^{@code m} being the number of elements.
* @param ks the order of the middle term(s) of the * @param ks the order of the middle term(s) of the
* reduction polynomial. Contents of this array are copied * reduction polynomial. Contents of this array are copied
* to protect against subsequent modification. * to protect against subsequent modification.
* @exception NullPointerException if <code>ks</code> is null. * @exception NullPointerException if {@code ks} is null.
* @exception IllegalArgumentException if<code>m</code> * @exception IllegalArgumentException if{@code m}
* is not positive, or the length of <code>ks</code> * is not positive, or the length of {@code ks}
* is neither 1 nor 3, or values in <code>ks</code> * is neither 1 nor 3, or values in {@code ks}
* are not between <code>m</code>-1 and 1 (inclusive) * are not between {@code m}-1 and 1 (inclusive)
* and in descending order. * and in descending order.
*/ */
public ECFieldF2m(int m, int[] ks) { public ECFieldF2m(int m, int[] ks) {
...@@ -160,7 +160,7 @@ public class ECFieldF2m implements ECField { ...@@ -160,7 +160,7 @@ public class ECFieldF2m implements ECField {
} }
/** /**
* Returns the field size in bits which is <code>m</code> * Returns the field size in bits which is {@code m}
* for this characteristic 2 finite field. * for this characteristic 2 finite field.
* @return the field size in bits. * @return the field size in bits.
*/ */
...@@ -169,9 +169,9 @@ public class ECFieldF2m implements ECField { ...@@ -169,9 +169,9 @@ public class ECFieldF2m implements ECField {
} }
/** /**
* Returns the value <code>m</code> of this characteristic * Returns the value {@code m} of this characteristic
* 2 finite field. * 2 finite field.
* @return <code>m</code> with 2^<code>m</code> being the * @return {@code m} with 2^{@code m} being the
* number of elements. * number of elements.
*/ */
public int getM() { public int getM() {
...@@ -211,8 +211,8 @@ public class ECFieldF2m implements ECField { ...@@ -211,8 +211,8 @@ public class ECFieldF2m implements ECField {
* Compares this finite field for equality with the * Compares this finite field for equality with the
* specified object. * specified object.
* @param obj the object to be compared. * @param obj the object to be compared.
* @return true if <code>obj</code> is an instance * @return true if {@code obj} is an instance
* of ECFieldF2m and both <code>m</code> and the reduction * of ECFieldF2m and both {@code m} and the reduction
* polynomial match, false otherwise. * polynomial match, false otherwise.
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -43,10 +43,10 @@ public class ECFieldFp implements ECField { ...@@ -43,10 +43,10 @@ public class ECFieldFp implements ECField {
/** /**
* Creates an elliptic curve prime finite field * Creates an elliptic curve prime finite field
* with the specified prime <code>p</code>. * with the specified prime {@code p}.
* @param p the prime. * @param p the prime.
* @exception NullPointerException if <code>p</code> is null. * @exception NullPointerException if {@code p} is null.
* @exception IllegalArgumentException if <code>p</code> * @exception IllegalArgumentException if {@code p}
* is not positive. * is not positive.
*/ */
public ECFieldFp(BigInteger p) { public ECFieldFp(BigInteger p) {
...@@ -66,7 +66,7 @@ public class ECFieldFp implements ECField { ...@@ -66,7 +66,7 @@ public class ECFieldFp implements ECField {
}; };
/** /**
* Returns the prime <code>p</code> of this prime finite field. * Returns the prime {@code p} of this prime finite field.
* @return the prime. * @return the prime.
*/ */
public BigInteger getP() { public BigInteger getP() {
...@@ -77,7 +77,7 @@ public class ECFieldFp implements ECField { ...@@ -77,7 +77,7 @@ public class ECFieldFp implements ECField {
* Compares this prime finite field for equality with the * Compares this prime finite field for equality with the
* specified object. * specified object.
* @param obj the object to be compared. * @param obj the object to be compared.
* @return true if <code>obj</code> is an instance * @return true if {@code obj} is an instance
* of ECFieldFp and the prime value match, false otherwise. * of ECFieldFp and the prime value match, false otherwise.
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -41,13 +41,13 @@ public class ECGenParameterSpec implements AlgorithmParameterSpec { ...@@ -41,13 +41,13 @@ public class ECGenParameterSpec implements AlgorithmParameterSpec {
/** /**
* Creates a parameter specification for EC parameter * Creates a parameter specification for EC parameter
* generation using a standard (or predefined) name * generation using a standard (or predefined) name
* <code>stdName</code> in order to generate the corresponding * {@code stdName} in order to generate the corresponding
* (precomputed) elliptic curve domain parameters. For the * (precomputed) elliptic curve domain parameters. For the
* list of supported names, please consult the documentation * list of supported names, please consult the documentation
* of provider whose implementation will be used. * of provider whose implementation will be used.
* @param stdName the standard name of the to-be-generated EC * @param stdName the standard name of the to-be-generated EC
* domain parameters. * domain parameters.
* @exception NullPointerException if <code>stdName</code> * @exception NullPointerException if {@code stdName}
* is null. * is null.
*/ */
public ECGenParameterSpec(String stdName) { public ECGenParameterSpec(String stdName) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -49,12 +49,12 @@ public class ECParameterSpec implements AlgorithmParameterSpec { ...@@ -49,12 +49,12 @@ public class ECParameterSpec implements AlgorithmParameterSpec {
* @param curve the elliptic curve which this parameter * @param curve the elliptic curve which this parameter
* defines. * defines.
* @param g the generator which is also known as the base point. * @param g the generator which is also known as the base point.
* @param n the order of the generator <code>g</code>. * @param n the order of the generator {@code g}.
* @param h the cofactor. * @param h the cofactor.
* @exception NullPointerException if <code>curve</code>, * @exception NullPointerException if {@code curve},
* <code>g</code>, or <code>n</code> is null. * {@code g}, or {@code n} is null.
* @exception IllegalArgumentException if <code>n</code> * @exception IllegalArgumentException if {@code n}
* or <code>h</code> is not positive. * or {@code h} is not positive.
*/ */
public ECParameterSpec(EllipticCurve curve, ECPoint g, public ECParameterSpec(EllipticCurve curve, ECPoint g,
BigInteger n, int h) { BigInteger n, int h) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -54,11 +54,11 @@ public class ECPoint { ...@@ -54,11 +54,11 @@ public class ECPoint {
/** /**
* Creates an ECPoint from the specified affine x-coordinate * Creates an ECPoint from the specified affine x-coordinate
* <code>x</code> and affine y-coordinate <code>y</code>. * {@code x} and affine y-coordinate {@code y}.
* @param x the affine x-coordinate. * @param x the affine x-coordinate.
* @param y the affine y-coordinate. * @param y the affine y-coordinate.
* @exception NullPointerException if <code>x</code> or * @exception NullPointerException if {@code x} or
* <code>y</code> is null. * {@code y} is null.
*/ */
public ECPoint(BigInteger x, BigInteger y) { public ECPoint(BigInteger x, BigInteger y) {
if ((x==null) || (y==null)) { if ((x==null) || (y==null)) {
...@@ -69,7 +69,7 @@ public class ECPoint { ...@@ -69,7 +69,7 @@ public class ECPoint {
} }
/** /**
* Returns the affine x-coordinate <code>x</code>. * Returns the affine x-coordinate {@code x}.
* Note: POINT_INFINITY has a null affine x-coordinate. * Note: POINT_INFINITY has a null affine x-coordinate.
* @return the affine x-coordinate. * @return the affine x-coordinate.
*/ */
...@@ -78,7 +78,7 @@ public class ECPoint { ...@@ -78,7 +78,7 @@ public class ECPoint {
} }
/** /**
* Returns the affine y-coordinate <code>y</code>. * Returns the affine y-coordinate {@code y}.
* Note: POINT_INFINITY has a null affine y-coordinate. * Note: POINT_INFINITY has a null affine y-coordinate.
* @return the affine y-coordinate. * @return the affine y-coordinate.
*/ */
...@@ -90,7 +90,7 @@ public class ECPoint { ...@@ -90,7 +90,7 @@ public class ECPoint {
* Compares this elliptic curve point for equality with * Compares this elliptic curve point for equality with
* the specified object. * the specified object.
* @param obj the object to be compared. * @param obj the object to be compared.
* @return true if <code>obj</code> is an instance of * @return true if {@code obj} is an instance of
* ECPoint and the affine coordinates match, false otherwise. * ECPoint and the affine coordinates match, false otherwise.
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -48,8 +48,8 @@ public class ECPrivateKeySpec implements KeySpec { ...@@ -48,8 +48,8 @@ public class ECPrivateKeySpec implements KeySpec {
* @param s the private value. * @param s the private value.
* @param params the associated elliptic curve domain * @param params the associated elliptic curve domain
* parameters. * parameters.
* @exception NullPointerException if <code>s</code> * @exception NullPointerException if {@code s}
* or <code>params</code> is null. * or {@code params} is null.
*/ */
public ECPrivateKeySpec(BigInteger s, ECParameterSpec params) { public ECPrivateKeySpec(BigInteger s, ECParameterSpec params) {
if (s == null) { if (s == null) {
......
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -47,9 +47,9 @@ public class ECPublicKeySpec implements KeySpec { ...@@ -47,9 +47,9 @@ public class ECPublicKeySpec implements KeySpec {
* @param w the public point. * @param w the public point.
* @param params the associated elliptic curve domain * @param params the associated elliptic curve domain
* parameters. * parameters.
* @exception NullPointerException if <code>w</code> * @exception NullPointerException if {@code w}
* or <code>params</code> is null. * or {@code params} is null.
* @exception IllegalArgumentException if <code>w</code> * @exception IllegalArgumentException if {@code w}
* is point at infinity, i.e. ECPoint.POINT_INFINITY * is point at infinity, i.e. ECPoint.POINT_INFINITY
*/ */
public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { public ECPublicKeySpec(ECPoint w, ECParameterSpec params) {
......
/* /*
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -68,15 +68,15 @@ public class EllipticCurve { ...@@ -68,15 +68,15 @@ public class EllipticCurve {
/** /**
* Creates an elliptic curve with the specified elliptic field * Creates an elliptic curve with the specified elliptic field
* <code>field</code> and the coefficients <code>a</code> and * {@code field} and the coefficients {@code a} and
* <code>b</code>. * {@code b}.
* @param field the finite field that this elliptic curve is over. * @param field the finite field that this elliptic curve is over.
* @param a the first coefficient of this elliptic curve. * @param a the first coefficient of this elliptic curve.
* @param b the second coefficient of this elliptic curve. * @param b the second coefficient of this elliptic curve.
* @exception NullPointerException if <code>field</code>, * @exception NullPointerException if {@code field},
* <code>a</code>, or <code>b</code> is null. * {@code a}, or {@code b} is null.
* @exception IllegalArgumentException if <code>a</code> * @exception IllegalArgumentException if {@code a}
* or <code>b</code> is not null and not in <code>field</code>. * or {@code b} is not null and not in {@code field}.
*/ */
public EllipticCurve(ECField field, BigInteger a, public EllipticCurve(ECField field, BigInteger a,
BigInteger b) { BigInteger b) {
...@@ -85,18 +85,18 @@ public class EllipticCurve { ...@@ -85,18 +85,18 @@ public class EllipticCurve {
/** /**
* Creates an elliptic curve with the specified elliptic field * Creates an elliptic curve with the specified elliptic field
* <code>field</code>, the coefficients <code>a</code> and * {@code field}, the coefficients {@code a} and
* <code>b</code>, and the <code>seed</code> used for curve generation. * {@code b}, and the {@code seed} used for curve generation.
* @param field the finite field that this elliptic curve is over. * @param field the finite field that this elliptic curve is over.
* @param a the first coefficient of this elliptic curve. * @param a the first coefficient of this elliptic curve.
* @param b the second coefficient of this elliptic curve. * @param b the second coefficient of this elliptic curve.
* @param seed the bytes used during curve generation for later * @param seed the bytes used during curve generation for later
* validation. Contents of this array are copied to protect against * validation. Contents of this array are copied to protect against
* subsequent modification. * subsequent modification.
* @exception NullPointerException if <code>field</code>, * @exception NullPointerException if {@code field},
* <code>a</code>, or <code>b</code> is null. * {@code a}, or {@code b} is null.
* @exception IllegalArgumentException if <code>a</code> * @exception IllegalArgumentException if {@code a}
* or <code>b</code> is not null and not in <code>field</code>. * or {@code b} is not null and not in {@code field}.
*/ */
public EllipticCurve(ECField field, BigInteger a, public EllipticCurve(ECField field, BigInteger a,
BigInteger b, byte[] seed) { BigInteger b, byte[] seed) {
...@@ -122,9 +122,9 @@ public class EllipticCurve { ...@@ -122,9 +122,9 @@ public class EllipticCurve {
} }
/** /**
* Returns the finite field <code>field</code> that this * Returns the finite field {@code field} that this
* elliptic curve is over. * elliptic curve is over.
* @return the field <code>field</code> that this curve * @return the field {@code field} that this curve
* is over. * is over.
*/ */
public ECField getField() { public ECField getField() {
...@@ -132,27 +132,27 @@ public class EllipticCurve { ...@@ -132,27 +132,27 @@ public class EllipticCurve {
} }
/** /**
* Returns the first coefficient <code>a</code> of the * Returns the first coefficient {@code a} of the
* elliptic curve. * elliptic curve.
* @return the first coefficient <code>a</code>. * @return the first coefficient {@code a}.
*/ */
public BigInteger getA() { public BigInteger getA() {
return a; return a;
} }
/** /**
* Returns the second coefficient <code>b</code> of the * Returns the second coefficient {@code b} of the
* elliptic curve. * elliptic curve.
* @return the second coefficient <code>b</code>. * @return the second coefficient {@code b}.
*/ */
public BigInteger getB() { public BigInteger getB() {
return b; return b;
} }
/** /**
* Returns the seeding bytes <code>seed</code> used * Returns the seeding bytes {@code seed} used
* during curve generation. May be null if not specified. * during curve generation. May be null if not specified.
* @return the seeding bytes <code>seed</code>. A new * @return the seeding bytes {@code seed}. A new
* array is returned each time this method is called. * array is returned each time this method is called.
*/ */
public byte[] getSeed() { public byte[] getSeed() {
...@@ -164,7 +164,7 @@ public class EllipticCurve { ...@@ -164,7 +164,7 @@ public class EllipticCurve {
* Compares this elliptic curve for equality with the * Compares this elliptic curve for equality with the
* specified object. * specified object.
* @param obj the object to be compared. * @param obj the object to be compared.
* @return true if <code>obj</code> is an instance of * @return true if {@code obj} is an instance of
* EllipticCurve and the field, A, and B match, false otherwise. * EllipticCurve and the field, A, and B match, false otherwise.
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
......
/* /*
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -49,7 +49,7 @@ public abstract class EncodedKeySpec implements KeySpec { ...@@ -49,7 +49,7 @@ public abstract class EncodedKeySpec implements KeySpec {
* *
* @param encodedKey the encoded key. The contents of the * @param encodedKey the encoded key. The contents of the
* array are copied to protect against subsequent modification. * array are copied to protect against subsequent modification.
* @exception NullPointerException if <code>encodedKey</code> * @exception NullPointerException if {@code encodedKey}
* is null. * is null.
*/ */
public EncodedKeySpec(byte[] encodedKey) { public EncodedKeySpec(byte[] encodedKey) {
...@@ -74,9 +74,9 @@ public abstract class EncodedKeySpec implements KeySpec { ...@@ -74,9 +74,9 @@ public abstract class EncodedKeySpec implements KeySpec {
* (see {@link java.security.Key Key}) can be transformed * (see {@link java.security.Key Key}) can be transformed
* (see {@link java.security.KeyFactory KeyFactory}) * (see {@link java.security.KeyFactory KeyFactory})
* into this key specification (or a subclass of it), * into this key specification (or a subclass of it),
* <code>getFormat</code> called * {@code getFormat} called
* on the opaque key returns the same value as the * on the opaque key returns the same value as the
* <code>getFormat</code> method * {@code getFormat} method
* of this key specification. * of this key specification.
* *
* @return a string representation of the encoding format. * @return a string representation of the encoding format.
......
/* /*
* Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -63,13 +63,13 @@ public class InvalidKeySpecException extends GeneralSecurityException { ...@@ -63,13 +63,13 @@ public class InvalidKeySpecException extends GeneralSecurityException {
} }
/** /**
* Creates a <code>InvalidKeySpecException</code> with the specified * Creates a {@code InvalidKeySpecException} with the specified
* detail message and cause. * detail message and cause.
* *
* @param message the detail message (which is saved for later retrieval * @param message the detail message (which is saved for later retrieval
* by the {@link #getMessage()} method). * by the {@link #getMessage()} method).
* @param cause the cause (which is saved for later retrieval by the * @param cause the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A <tt>null</tt> value is permitted, * {@link #getCause()} method). (A {@code null} value is permitted,
* and indicates that the cause is nonexistent or unknown.) * and indicates that the cause is nonexistent or unknown.)
* @since 1.5 * @since 1.5
*/ */
...@@ -78,13 +78,13 @@ public class InvalidKeySpecException extends GeneralSecurityException { ...@@ -78,13 +78,13 @@ public class InvalidKeySpecException extends GeneralSecurityException {
} }
/** /**
* Creates a <code>InvalidKeySpecException</code> with the specified cause * Creates a {@code InvalidKeySpecException} with the specified cause
* and a detail message of <tt>(cause==null ? null : cause.toString())</tt> * and a detail message of {@code (cause==null ? null : cause.toString())}
* (which typically contains the class and detail message of * (which typically contains the class and detail message of
* <tt>cause</tt>). * {@code cause}).
* *
* @param cause the cause (which is saved for later retrieval by the * @param cause the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A <tt>null</tt> value is permitted, * {@link #getCause()} method). (A {@code null} value is permitted,
* and indicates that the cause is nonexistent or unknown.) * and indicates that the cause is nonexistent or unknown.)
* @since 1.5 * @since 1.5
*/ */
......
/* /*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -36,7 +36,7 @@ package java.security.spec; ...@@ -36,7 +36,7 @@ package java.security.spec;
* <P> A key may be specified in an algorithm-specific way, or in an * <P> A key may be specified in an algorithm-specific way, or in an
* algorithm-independent encoding format (such as ASN.1). * algorithm-independent encoding format (such as ASN.1).
* For example, a DSA private key may be specified by its components * For example, a DSA private key may be specified by its components
* <code>x</code>, <code>p</code>, <code>q</code>, and <code>g</code> * {@code x}, {@code p}, {@code q}, and {@code g}
* (see {@link DSAPrivateKeySpec}), or it may be * (see {@link DSAPrivateKeySpec}), or it may be
* specified using its DER encoding * specified using its DER encoding
* (see {@link PKCS8EncodedKeySpec}). * (see {@link PKCS8EncodedKeySpec}).
......
/* /*
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -92,7 +92,7 @@ public class MGF1ParameterSpec implements AlgorithmParameterSpec { ...@@ -92,7 +92,7 @@ public class MGF1ParameterSpec implements AlgorithmParameterSpec {
* *
* @param mdName the algorithm name for the message digest * @param mdName the algorithm name for the message digest
* used in this mask generation function MGF1. * used in this mask generation function MGF1.
* @exception NullPointerException if <code>mdName</code> is null. * @exception NullPointerException if {@code mdName} is null.
*/ */
public MGF1ParameterSpec(String mdName) { public MGF1ParameterSpec(String mdName) {
if (mdName == null) { if (mdName == null) {
......
/* /*
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -27,8 +27,8 @@ package java.security.spec; ...@@ -27,8 +27,8 @@ package java.security.spec;
/** /**
* This class represents the ASN.1 encoding of a private key, * This class represents the ASN.1 encoding of a private key,
* encoded according to the ASN.1 type <code>PrivateKeyInfo</code>. * encoded according to the ASN.1 type {@code PrivateKeyInfo}.
* The <code>PrivateKeyInfo</code> syntax is defined in the PKCS#8 standard * The {@code PrivateKeyInfo} syntax is defined in the PKCS#8 standard
* as follows: * as follows:
* *
* <pre> * <pre>
...@@ -67,7 +67,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec { ...@@ -67,7 +67,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec {
* @param encodedKey the key, which is assumed to be * @param encodedKey the key, which is assumed to be
* encoded according to the PKCS #8 standard. The contents of * encoded according to the PKCS #8 standard. The contents of
* the array are copied to protect against subsequent modification. * the array are copied to protect against subsequent modification.
* @exception NullPointerException if <code>encodedKey</code> * @exception NullPointerException if {@code encodedKey}
* is null. * is null.
*/ */
public PKCS8EncodedKeySpec(byte[] encodedKey) { public PKCS8EncodedKeySpec(byte[] encodedKey) {
...@@ -88,7 +88,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec { ...@@ -88,7 +88,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec {
* Returns the name of the encoding format associated with this * Returns the name of the encoding format associated with this
* key specification. * key specification.
* *
* @return the string <code>"PKCS#8"</code>. * @return the string {@code "PKCS#8"}.
*/ */
public final String getFormat() { public final String getFormat() {
return "PKCS#8"; return "PKCS#8";
......
/* /*
* Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -91,14 +91,14 @@ public class PSSParameterSpec implements AlgorithmParameterSpec { ...@@ -91,14 +91,14 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
public static final PSSParameterSpec DEFAULT = new PSSParameterSpec(); public static final PSSParameterSpec DEFAULT = new PSSParameterSpec();
/** /**
* Constructs a new <code>PSSParameterSpec</code> as defined in * Constructs a new {@code PSSParameterSpec} as defined in
* the PKCS #1 standard using the default values. * the PKCS #1 standard using the default values.
*/ */
private PSSParameterSpec() { private PSSParameterSpec() {
} }
/** /**
* Creates a new <code>PSSParameterSpec</code> as defined in * Creates a new {@code PSSParameterSpec} as defined in
* the PKCS #1 standard using the specified message digest, * the PKCS #1 standard using the specified message digest,
* mask generation function, parameters for mask generation * mask generation function, parameters for mask generation
* function, salt length, and trailer field values. * function, salt length, and trailer field values.
...@@ -111,10 +111,10 @@ public class PSSParameterSpec implements AlgorithmParameterSpec { ...@@ -111,10 +111,10 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
* getMGFParameters(). * getMGFParameters().
* @param saltLen the length of salt. * @param saltLen the length of salt.
* @param trailerField the value of the trailer field. * @param trailerField the value of the trailer field.
* @exception NullPointerException if <code>mdName</code>, * @exception NullPointerException if {@code mdName},
* or <code>mgfName</code> is null. * or {@code mgfName} is null.
* @exception IllegalArgumentException if <code>saltLen</code> * @exception IllegalArgumentException if {@code saltLen}
* or <code>trailerField</code> is less than 0. * or {@code trailerField} is less than 0.
* @since 1.5 * @since 1.5
*/ */
public PSSParameterSpec(String mdName, String mgfName, public PSSParameterSpec(String mdName, String mgfName,
...@@ -143,13 +143,13 @@ public class PSSParameterSpec implements AlgorithmParameterSpec { ...@@ -143,13 +143,13 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
} }
/** /**
* Creates a new <code>PSSParameterSpec</code> * Creates a new {@code PSSParameterSpec}
* using the specified salt length and other default values as * using the specified salt length and other default values as
* defined in PKCS#1. * defined in PKCS#1.
* *
* @param saltLen the length of salt in bits to be used in PKCS#1 * @param saltLen the length of salt in bits to be used in PKCS#1
* PSS encoding. * PSS encoding.
* @exception IllegalArgumentException if <code>saltLen</code> is * @exception IllegalArgumentException if {@code saltLen} is
* less than 0. * less than 0.
*/ */
public PSSParameterSpec(int saltLen) { public PSSParameterSpec(int saltLen) {
......
/* /*
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -55,7 +55,7 @@ public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec { ...@@ -55,7 +55,7 @@ public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec {
public static final BigInteger F4 = BigInteger.valueOf(65537); public static final BigInteger F4 = BigInteger.valueOf(65537);
/** /**
* Constructs a new <code>RSAParameterSpec</code> object from the * Constructs a new {@code RSAParameterSpec} object from the
* given keysize and public-exponent value. * given keysize and public-exponent value.
* *
* @param keysize the modulus size (specified in number of bits) * @param keysize the modulus size (specified in number of bits)
......
/* /*
* Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -57,12 +57,12 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec { ...@@ -57,12 +57,12 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec {
private final RSAOtherPrimeInfo otherPrimeInfo[]; private final RSAOtherPrimeInfo otherPrimeInfo[];
/** /**
* Creates a new <code>RSAMultiPrimePrivateCrtKeySpec</code> * Creates a new {@code RSAMultiPrimePrivateCrtKeySpec}
* given the modulus, publicExponent, privateExponent, * given the modulus, publicExponent, privateExponent,
* primeP, primeQ, primeExponentP, primeExponentQ, * primeP, primeQ, primeExponentP, primeExponentQ,
* crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1. * crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1.
* *
* <p>Note that the contents of <code>otherPrimeInfo</code> * <p>Note that the contents of {@code otherPrimeInfo}
* are copied to protect against subsequent modification when * are copied to protect against subsequent modification when
* constructing this object. * constructing this object.
* *
...@@ -78,13 +78,13 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec { ...@@ -78,13 +78,13 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec {
* @param otherPrimeInfo triplets of the rest of primes, null can be * @param otherPrimeInfo triplets of the rest of primes, null can be
* specified if there are only two prime factors (p and q). * specified if there are only two prime factors (p and q).
* @exception NullPointerException if any of the parameters, i.e. * @exception NullPointerException if any of the parameters, i.e.
* <code>modulus</code>, * {@code modulus},
* <code>publicExponent</code>, <code>privateExponent</code>, * {@code publicExponent}, {@code privateExponent},
* <code>primeP</code>, <code>primeQ</code>, * {@code primeP}, {@code primeQ},
* <code>primeExponentP</code>, <code>primeExponentQ</code>, * {@code primeExponentP}, {@code primeExponentQ},
* <code>crtCoefficient</code>, is null. * {@code crtCoefficient}, is null.
* @exception IllegalArgumentException if an empty, i.e. 0-length, * @exception IllegalArgumentException if an empty, i.e. 0-length,
* <code>otherPrimeInfo</code> is specified. * {@code otherPrimeInfo} is specified.
*/ */
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
BigInteger publicExponent, BigInteger publicExponent,
......
/* /*
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -58,7 +58,7 @@ public class RSAOtherPrimeInfo { ...@@ -58,7 +58,7 @@ public class RSAOtherPrimeInfo {
/** /**
* Creates a new <code>RSAOtherPrimeInfo</code> * Creates a new {@code RSAOtherPrimeInfo}
* given the prime, primeExponent, and * given the prime, primeExponent, and
* crtCoefficient as defined in PKCS#1. * crtCoefficient as defined in PKCS#1.
* *
...@@ -67,8 +67,8 @@ public class RSAOtherPrimeInfo { ...@@ -67,8 +67,8 @@ public class RSAOtherPrimeInfo {
* @param crtCoefficient the Chinese Remainder Theorem * @param crtCoefficient the Chinese Remainder Theorem
* coefficient. * coefficient.
* @exception NullPointerException if any of the parameters, i.e. * @exception NullPointerException if any of the parameters, i.e.
* <code>prime</code>, <code>primeExponent</code>, * {@code prime}, {@code primeExponent},
* <code>crtCoefficient</code>, is null. * {@code crtCoefficient}, is null.
* *
*/ */
public RSAOtherPrimeInfo(BigInteger prime, public RSAOtherPrimeInfo(BigInteger prime,
......
/* /*
* Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -55,7 +55,7 @@ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec { ...@@ -55,7 +55,7 @@ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec {
/** /**
* Creates a new <code>RSAPrivateCrtKeySpec</code> * Creates a new {@code RSAPrivateCrtKeySpec}
* given the modulus, publicExponent, privateExponent, * given the modulus, publicExponent, privateExponent,
* primeP, primeQ, primeExponentP, primeExponentQ, and * primeP, primeQ, primeExponentP, primeExponentQ, and
* crtCoefficient as defined in PKCS#1. * crtCoefficient as defined in PKCS#1.
......
/* /*
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -27,8 +27,8 @@ package java.security.spec; ...@@ -27,8 +27,8 @@ package java.security.spec;
/** /**
* This class represents the ASN.1 encoding of a public key, * This class represents the ASN.1 encoding of a public key,
* encoded according to the ASN.1 type <code>SubjectPublicKeyInfo</code>. * encoded according to the ASN.1 type {@code SubjectPublicKeyInfo}.
* The <code>SubjectPublicKeyInfo</code> syntax is defined in the X.509 * The {@code SubjectPublicKeyInfo} syntax is defined in the X.509
* standard as follows: * standard as follows:
* *
* <pre> * <pre>
...@@ -57,7 +57,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec { ...@@ -57,7 +57,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec {
* @param encodedKey the key, which is assumed to be * @param encodedKey the key, which is assumed to be
* encoded according to the X.509 standard. The contents of the * encoded according to the X.509 standard. The contents of the
* array are copied to protect against subsequent modification. * array are copied to protect against subsequent modification.
* @exception NullPointerException if <code>encodedKey</code> * @exception NullPointerException if {@code encodedKey}
* is null. * is null.
*/ */
public X509EncodedKeySpec(byte[] encodedKey) { public X509EncodedKeySpec(byte[] encodedKey) {
...@@ -78,7 +78,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec { ...@@ -78,7 +78,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec {
* Returns the name of the encoding format associated with this * Returns the name of the encoding format associated with this
* key specification. * key specification.
* *
* @return the string <code>"X.509"</code>. * @return the string {@code "X.509"}.
*/ */
public final String getFormat() { public final String getFormat() {
return "X.509"; return "X.509";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册