mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8241761: Typos: empty lines in javadoc, inconsistent indents, etc. (security-libs only)
Reviewed-by: weijun
This commit is contained in:
parent
cc25927f2d
commit
3790e58090
65 changed files with 606 additions and 620 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2018, 2020, 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
|
||||||
|
@ -40,9 +40,9 @@ import sun.security.util.*;
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* id-alg-AEADChaCha20Poly1305 OBJECT IDENTIFIER ::=
|
* id-alg-AEADChaCha20Poly1305 OBJECT IDENTIFIER ::=
|
||||||
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
|
* { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
|
||||||
pkcs9(9) smime(16) alg(3) 18 }
|
* pkcs9(9) smime(16) alg(3) 18 }
|
||||||
|
*
|
||||||
* AEADChaCha20Poly1305Nonce ::= OCTET STRING (SIZE(12))
|
* AEADChaCha20Poly1305Nonce ::= OCTET STRING (SIZE(12))
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -86,7 +86,7 @@ public final class ChaCha20Poly1305Parameters extends AlgorithmParametersSpi {
|
||||||
/**
|
/**
|
||||||
* Initialize the ChaCha20Poly1305Parameters from a DER encoded
|
* Initialize the ChaCha20Poly1305Parameters from a DER encoded
|
||||||
* parameter block.
|
* parameter block.
|
||||||
|
*
|
||||||
* @param encoded the DER encoding of the nonce as an OCTET STRING.
|
* @param encoded the DER encoding of the nonce as an OCTET STRING.
|
||||||
*
|
*
|
||||||
* @throws IOException if the encoded nonce is not 12 bytes long or a DER
|
* @throws IOException if the encoded nonce is not 12 bytes long or a DER
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
@ -115,7 +115,7 @@ public abstract class KeyFactorySpi {
|
||||||
*
|
*
|
||||||
* @return the underlying key specification (key material) in an instance
|
* @return the underlying key specification (key material) in an instance
|
||||||
* of the requested specification class.
|
* of the requested specification class.
|
||||||
|
*
|
||||||
* @throws InvalidKeySpecException if the requested key specification is
|
* @throws InvalidKeySpecException if the requested key specification is
|
||||||
* inappropriate for the given key, or the given key cannot be dealt with
|
* inappropriate for the given key, or the given key cannot be dealt with
|
||||||
* (e.g., the given key has an unrecognized format).
|
* (e.g., the given key has an unrecognized format).
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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
|
||||||
|
|
|
@ -287,7 +287,7 @@ public abstract class Provider extends Properties {
|
||||||
* @throws UnsupportedOperationException if a configuration argument is
|
* @throws UnsupportedOperationException if a configuration argument is
|
||||||
* not supported.
|
* not supported.
|
||||||
* @throws NullPointerException if the supplied configuration argument is
|
* @throws NullPointerException if the supplied configuration argument is
|
||||||
null.
|
* null.
|
||||||
* @throws InvalidParameterException if the supplied configuration argument
|
* @throws InvalidParameterException if the supplied configuration argument
|
||||||
* is invalid.
|
* is invalid.
|
||||||
* @return a provider configured with the supplied configuration argument.
|
* @return a provider configured with the supplied configuration argument.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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
|
||||||
|
@ -1067,7 +1067,7 @@ public final class Security {
|
||||||
* or an empty set if no provider supports the specified service.
|
* or an empty set if no provider supports the specified service.
|
||||||
*
|
*
|
||||||
* @since 1.4
|
* @since 1.4
|
||||||
**/
|
*/
|
||||||
public static Set<String> getAlgorithms(String serviceName) {
|
public static Set<String> getAlgorithms(String serviceName) {
|
||||||
|
|
||||||
if ((serviceName == null) || (serviceName.isEmpty()) ||
|
if ((serviceName == null) || (serviceName.isEmpty()) ||
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
@ -112,7 +112,7 @@ import java.util.StringTokenizer;
|
||||||
* <td>Getting an instance of a Policy implementation from a provider</td>
|
* <td>Getting an instance of a Policy implementation from a provider</td>
|
||||||
* <td>Granting this permission enables code to obtain a Policy object.
|
* <td>Granting this permission enables code to obtain a Policy object.
|
||||||
* Malicious code may query the Policy object to determine what permissions
|
* Malicious code may query the Policy object to determine what permissions
|
||||||
* have been granted to code other than itself. </td>
|
* have been granted to code other than itself.</td>
|
||||||
* </tr>
|
* </tr>
|
||||||
*
|
*
|
||||||
* <tr>
|
* <tr>
|
||||||
|
@ -124,8 +124,7 @@ import java.util.StringTokenizer;
|
||||||
* security policies. while revealing this information does not
|
* security policies. while revealing this information does not
|
||||||
* compromise the security of the system, it does provide malicious
|
* compromise the security of the system, it does provide malicious
|
||||||
* code with additional information which it may use to better aim
|
* code with additional information which it may use to better aim
|
||||||
* an attack.
|
* an attack.</td>
|
||||||
</td>
|
|
||||||
* </tr>
|
* </tr>
|
||||||
*
|
*
|
||||||
* <tr>
|
* <tr>
|
||||||
|
@ -139,8 +138,7 @@ import java.util.StringTokenizer;
|
||||||
* permission to set the location of the system-wide security policy
|
* permission to set the location of the system-wide security policy
|
||||||
* may point it to a security policy that grants the attacker
|
* may point it to a security policy that grants the attacker
|
||||||
* all the necessary permissions it requires to successfully mount
|
* all the necessary permissions it requires to successfully mount
|
||||||
* an attack on the system.
|
* an attack on the system.</td>
|
||||||
</td>
|
|
||||||
* </tr>
|
* </tr>
|
||||||
*
|
*
|
||||||
* <tr>
|
* <tr>
|
||||||
|
@ -153,8 +151,7 @@ import java.util.StringTokenizer;
|
||||||
* currently does not check the integrity or authenticity of a provider
|
* currently does not check the integrity or authenticity of a provider
|
||||||
* before attaching it. The "insertProvider" permission subsumes the
|
* before attaching it. The "insertProvider" permission subsumes the
|
||||||
* "insertProvider.{provider name}" permission (see the section below for
|
* "insertProvider.{provider name}" permission (see the section below for
|
||||||
* more information).
|
* more information).</td>
|
||||||
* </td>
|
|
||||||
* </tr>
|
* </tr>
|
||||||
*
|
*
|
||||||
* <tr>
|
* <tr>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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,7 +63,7 @@ public interface RSAPrivateCrtKey extends RSAPrivateKey {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primeP.
|
* Returns the primeP.
|
||||||
|
*
|
||||||
* @return the primeP
|
* @return the primeP
|
||||||
*/
|
*/
|
||||||
public BigInteger getPrimeP();
|
public BigInteger getPrimeP();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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
|
||||||
|
@ -123,7 +123,7 @@ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primeP.
|
* Returns the primeP.
|
||||||
|
*
|
||||||
* @return the primeP
|
* @return the primeP
|
||||||
*/
|
*/
|
||||||
public BigInteger getPrimeP() {
|
public BigInteger getPrimeP() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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
|
||||||
|
@ -160,7 +160,7 @@ public class ExemptionMechanism {
|
||||||
*
|
*
|
||||||
* <p> Note that the list of registered providers may be retrieved via
|
* <p> Note that the list of registered providers may be retrieved via
|
||||||
* the {@link Security#getProviders() Security.getProviders()} method.
|
* the {@link Security#getProviders() Security.getProviders()} method.
|
||||||
|
*
|
||||||
* @param algorithm the standard name of the requested exemption mechanism.
|
* @param algorithm the standard name of the requested exemption mechanism.
|
||||||
* See the ExemptionMechanism section in the
|
* See the ExemptionMechanism section in the
|
||||||
* <a href=
|
* <a href=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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
|
||||||
|
@ -163,7 +163,7 @@ public class KeyManagerFactory {
|
||||||
*
|
*
|
||||||
* <p> Note that the list of registered providers may be retrieved via
|
* <p> Note that the list of registered providers may be retrieved via
|
||||||
* the {@link Security#getProviders() Security.getProviders()} method.
|
* the {@link Security#getProviders() Security.getProviders()} method.
|
||||||
|
*
|
||||||
* @param algorithm the standard name of the requested algorithm.
|
* @param algorithm the standard name of the requested algorithm.
|
||||||
* See the <a href=
|
* See the <a href=
|
||||||
* "{@docRoot}/../specs/security/standard-names.html#keymanagerfactory-algorithms">
|
* "{@docRoot}/../specs/security/standard-names.html#keymanagerfactory-algorithms">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
@ -127,7 +127,6 @@ public final class X500PrivateCredential implements Destroyable {
|
||||||
* in this object have been cleared.
|
* in this object have been cleared.
|
||||||
*
|
*
|
||||||
* @return true if X509Certificate and the PrivateKey are null
|
* @return true if X509Certificate and the PrivateKey are null
|
||||||
|
|
||||||
*/
|
*/
|
||||||
public boolean isDestroyed() {
|
public boolean isDestroyed() {
|
||||||
return cert == null && key == null && alias==null;
|
return cert == null && key == null && alias==null;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2020, 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 @@ import sun.security.action.GetPropertyAction;
|
||||||
* - SHA-224withDSA/SHA-256withDSA are the signature schemes
|
* - SHA-224withDSA/SHA-256withDSA are the signature schemes
|
||||||
* described in FIPS 186-3. The associated object identifiers are
|
* described in FIPS 186-3. The associated object identifiers are
|
||||||
* "OID.2.16.840.1.101.3.4.3.1", and "OID.2.16.840.1.101.3.4.3.2".
|
* "OID.2.16.840.1.101.3.4.3.1", and "OID.2.16.840.1.101.3.4.3.2".
|
||||||
|
*
|
||||||
* - DSA is the key generation scheme as described in FIPS 186.
|
* - DSA is the key generation scheme as described in FIPS 186.
|
||||||
* Aliases for DSA include the OID strings "OID.1.3.14.3.2.12"
|
* Aliases for DSA include the OID strings "OID.1.3.14.3.2.12"
|
||||||
* and "OID.1.2.840.10040.4.1".
|
* and "OID.1.2.840.10040.4.1".
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2020, 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,8 +45,8 @@ import sun.security.util.*;
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* The extension is defined in Section 5.2.4 of
|
* The extension is defined in Section 5.2.4 of
|
||||||
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI Certific
|
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI
|
||||||
ate and Certificate Revocation List (CRL) Profile</a>.
|
* Certificate and Certificate Revocation List (CRL) Profile</a>.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Its ASN.1 definition is as follows:
|
* Its ASN.1 definition is as follows:
|
||||||
|
|
|
@ -69,7 +69,7 @@ import sun.security.util.ObjectIdentifier;
|
||||||
* the purpose indicated. Certificate using applications may
|
* the purpose indicated. Certificate using applications may
|
||||||
* nevertheless require that a particular purpose be indicated in
|
* nevertheless require that a particular purpose be indicated in
|
||||||
* order for the certificate to be acceptable to that application.<p>
|
* order for the certificate to be acceptable to that application.<p>
|
||||||
|
*
|
||||||
* If a certificate contains both a critical key usage field and a
|
* If a certificate contains both a critical key usage field and a
|
||||||
* critical extended key usage field, then both fields MUST be
|
* critical extended key usage field, then both fields MUST be
|
||||||
* processed independently and the certificate MUST only be used for a
|
* processed independently and the certificate MUST only be used for a
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2020, 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
|
||||||
|
@ -42,8 +42,8 @@ import sun.security.util.*;
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* The extension is defined in Section 5.2.6 of
|
* The extension is defined in Section 5.2.6 of
|
||||||
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI Certific
|
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI
|
||||||
ate and Certificate Revocation List (CRL) Profile</a>.
|
* Certificate and Certificate Revocation List (CRL) Profile</a>.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Its ASN.1 definition is as follows:
|
* Its ASN.1 definition is as follows:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2020, 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
|
||||||
|
@ -46,8 +46,8 @@ import sun.security.util.DerValue;
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* The extension is defined in Section 5.2.5 of
|
* The extension is defined in Section 5.2.5 of
|
||||||
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI Certific
|
* <a href="http://tools.ietf.org/html/rfc5280">Internet X.509 PKI
|
||||||
ate and Certificate Revocation List (CRL) Profile</a>.
|
* Certificate and Certificate Revocation List (CRL) Profile</a>.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Its ASN.1 definition is as follows:
|
* Its ASN.1 definition is as follows:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
@ -108,8 +108,8 @@ public class KerberosKey implements SecretKey {
|
||||||
*
|
*
|
||||||
* @serial
|
* @serial
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private KeyImpl key;
|
private KeyImpl key;
|
||||||
|
|
||||||
private transient boolean destroyed = false;
|
private transient boolean destroyed = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
@ -133,7 +133,6 @@ public class HostAddress implements Cloneable {
|
||||||
* Gets the InetAddress of this HostAddress.
|
* Gets the InetAddress of this HostAddress.
|
||||||
* @return the IP address for this specified host.
|
* @return the IP address for this specified host.
|
||||||
* @exception UnknownHostException if no IP address for the host could be found.
|
* @exception UnknownHostException if no IP address for the host could be found.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public InetAddress getInetAddress() throws UnknownHostException {
|
public InetAddress getInetAddress() throws UnknownHostException {
|
||||||
// the type of internet addresses is 2.
|
// the type of internet addresses is 2.
|
||||||
|
@ -172,7 +171,6 @@ public class HostAddress implements Cloneable {
|
||||||
* Distributions of Unix.
|
* Distributions of Unix.
|
||||||
* @param new_address network address.
|
* @param new_address network address.
|
||||||
* @exception KrbApErrException if address type and address length do not match defined value.
|
* @exception KrbApErrException if address type and address length do not match defined value.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public HostAddress(int new_addrType, byte[] new_address)
|
public HostAddress(int new_addrType, byte[] new_address)
|
||||||
throws KrbApErrException, UnknownHostException {
|
throws KrbApErrException, UnknownHostException {
|
||||||
|
@ -228,7 +226,6 @@ public class HostAddress implements Cloneable {
|
||||||
* @param encoding a single DER-encoded value.
|
* @param encoding a single DER-encoded value.
|
||||||
* @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data.
|
* @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data.
|
||||||
* @exception IOException if an I/O error occurs while reading encoded data.
|
* @exception IOException if an I/O error occurs while reading encoded data.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public HostAddress(DerValue encoding) throws Asn1Exception, IOException {
|
public HostAddress(DerValue encoding) throws Asn1Exception, IOException {
|
||||||
DerValue der = encoding.getData().getDerValue();
|
DerValue der = encoding.getData().getDerValue();
|
||||||
|
@ -252,9 +249,7 @@ public class HostAddress implements Cloneable {
|
||||||
* @return a byte array of encoded HostAddress object.
|
* @return a byte array of encoded HostAddress object.
|
||||||
* @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data.
|
* @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data.
|
||||||
* @exception IOException if an I/O error occurs while reading encoded data.
|
* @exception IOException if an I/O error occurs while reading encoded data.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public byte[] asn1Encode() throws Asn1Exception, IOException {
|
public byte[] asn1Encode() throws Asn1Exception, IOException {
|
||||||
DerOutputStream bytes = new DerOutputStream();
|
DerOutputStream bytes = new DerOutputStream();
|
||||||
DerOutputStream temp = new DerOutputStream();
|
DerOutputStream temp = new DerOutputStream();
|
||||||
|
@ -279,7 +274,6 @@ public class HostAddress implements Cloneable {
|
||||||
* @param explicitTag tag number.
|
* @param explicitTag tag number.
|
||||||
* @param optional indicates if this data field is optional
|
* @param optional indicates if this data field is optional
|
||||||
* @return an instance of HostAddress.
|
* @return an instance of HostAddress.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public static HostAddress parse(DerInputStream data, byte explicitTag,
|
public static HostAddress parse(DerInputStream data, byte explicitTag,
|
||||||
boolean optional)
|
boolean optional)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
@ -247,7 +247,6 @@ public class HostAddresses implements Cloneable {
|
||||||
* @exception IOException if an I/O exception occurs.
|
* @exception IOException if an I/O exception occurs.
|
||||||
* @see sun.security.krb5.internal.ccache.CCacheOutputStream
|
* @see sun.security.krb5.internal.ccache.CCacheOutputStream
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void writeAddrs(CCacheOutputStream cos) throws IOException {
|
public void writeAddrs(CCacheOutputStream cos) throws IOException {
|
||||||
if (addresses == null || addresses.length == 0) {
|
if (addresses == null || addresses.length == 0) {
|
||||||
cos.write32(0);
|
cos.write32(0);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2010, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2010, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2010, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2020, 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,7 +27,7 @@ package javax.security.sasl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs SASL authentication as a client.
|
* Performs SASL authentication as a client.
|
||||||
*<p>
|
* <p>
|
||||||
* A protocol library such as one for LDAP gets an instance of this
|
* A protocol library such as one for LDAP gets an instance of this
|
||||||
* class in order to perform authentication defined by a specific SASL
|
* class in order to perform authentication defined by a specific SASL
|
||||||
* mechanism. Invoking methods on the {@code SaslClient} instance
|
* mechanism. Invoking methods on the {@code SaslClient} instance
|
||||||
|
@ -35,16 +35,16 @@ package javax.security.sasl;
|
||||||
* mechanism implemented by the {@code SaslClient}.
|
* mechanism implemented by the {@code SaslClient}.
|
||||||
* As the authentication proceeds, the instance
|
* As the authentication proceeds, the instance
|
||||||
* encapsulates the state of a SASL client's authentication exchange.
|
* encapsulates the state of a SASL client's authentication exchange.
|
||||||
*<p>
|
* <p>
|
||||||
* Here's an example of how an LDAP library might use a {@code SaslClient}.
|
* Here's an example of how an LDAP library might use a {@code SaslClient}.
|
||||||
* It first gets an instance of a {@code SaslClient}:
|
* It first gets an instance of a {@code SaslClient}:
|
||||||
*<blockquote><pre>{@code
|
* <blockquote><pre>{@code
|
||||||
* SaslClient sc = Sasl.createSaslClient(mechanisms,
|
* SaslClient sc = Sasl.createSaslClient(mechanisms,
|
||||||
* authorizationId, protocol, serverName, props, callbackHandler);
|
* authorizationId, protocol, serverName, props, callbackHandler);
|
||||||
*}</pre></blockquote>
|
* }</pre></blockquote>
|
||||||
* It can then proceed to use the client for authentication.
|
* It can then proceed to use the client for authentication.
|
||||||
* For example, an LDAP library might use the client as follows:
|
* For example, an LDAP library might use the client as follows:
|
||||||
*<blockquote><pre>{@code
|
* <blockquote><pre>{@code
|
||||||
* // Get initial response and send to server
|
* // Get initial response and send to server
|
||||||
* byte[] response = (sc.hasInitialResponse() ? sc.evaluateChallenge(new byte[0]) :
|
* byte[] response = (sc.hasInitialResponse() ? sc.evaluateChallenge(new byte[0]) :
|
||||||
* null);
|
* null);
|
||||||
|
@ -74,7 +74,7 @@ package javax.security.sasl;
|
||||||
* ldap.out = new SecureOutputStream(sc, ldap.out);
|
* ldap.out = new SecureOutputStream(sc, ldap.out);
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
*}</pre></blockquote>
|
* }</pre></blockquote>
|
||||||
*
|
*
|
||||||
* If the mechanism has an initial response, the library invokes
|
* If the mechanism has an initial response, the library invokes
|
||||||
* {@code evaluateChallenge()} with an empty
|
* {@code evaluateChallenge()} with an empty
|
||||||
|
@ -152,7 +152,7 @@ public abstract interface SaslClient {
|
||||||
* the authentication exchange has negotiated integrity and/or privacy
|
* the authentication exchange has negotiated integrity and/or privacy
|
||||||
* as the quality of protection; otherwise, an
|
* as the quality of protection; otherwise, an
|
||||||
* {@code IllegalStateException} is thrown.
|
* {@code IllegalStateException} is thrown.
|
||||||
*<p>
|
* <p>
|
||||||
* {@code incoming} is the contents of the SASL buffer as defined in RFC 2222
|
* {@code incoming} is the contents of the SASL buffer as defined in RFC 2222
|
||||||
* without the leading four octet field that represents the length.
|
* without the leading four octet field that represents the length.
|
||||||
* {@code offset} and {@code len} specify the portion of {@code incoming}
|
* {@code offset} and {@code len} specify the portion of {@code incoming}
|
||||||
|
@ -179,7 +179,7 @@ public abstract interface SaslClient {
|
||||||
* the authentication exchange has negotiated integrity and/or privacy
|
* the authentication exchange has negotiated integrity and/or privacy
|
||||||
* as the quality of protection; otherwise, an
|
* as the quality of protection; otherwise, an
|
||||||
* {@code IllegalStateException} is thrown.
|
* {@code IllegalStateException} is thrown.
|
||||||
*<p>
|
* <p>
|
||||||
* The result of this method will make up the contents of the SASL buffer
|
* The result of this method will make up the contents of the SASL buffer
|
||||||
* as defined in RFC 2222 without the leading four octet field that
|
* as defined in RFC 2222 without the leading four octet field that
|
||||||
* represents the length.
|
* represents the length.
|
||||||
|
@ -215,7 +215,6 @@ public abstract interface SaslClient {
|
||||||
* @exception IllegalStateException if this authentication exchange
|
* @exception IllegalStateException if this authentication exchange
|
||||||
* has not completed
|
* has not completed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract Object getNegotiatedProperty(String propName);
|
public abstract Object getNegotiatedProperty(String propName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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,7 +27,7 @@ package javax.security.sasl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs SASL authentication as a server.
|
* Performs SASL authentication as a server.
|
||||||
*<p>
|
* <p>
|
||||||
* A server such an LDAP server gets an instance of this
|
* A server such an LDAP server gets an instance of this
|
||||||
* class in order to perform authentication defined by a specific SASL
|
* class in order to perform authentication defined by a specific SASL
|
||||||
* mechanism. Invoking methods on the {@code SaslServer} instance
|
* mechanism. Invoking methods on the {@code SaslServer} instance
|
||||||
|
@ -35,19 +35,19 @@ package javax.security.sasl;
|
||||||
* mechanism implemented by the {@code SaslServer}.
|
* mechanism implemented by the {@code SaslServer}.
|
||||||
* As the authentication proceeds, the instance
|
* As the authentication proceeds, the instance
|
||||||
* encapsulates the state of a SASL server's authentication exchange.
|
* encapsulates the state of a SASL server's authentication exchange.
|
||||||
*<p>
|
* <p>
|
||||||
* Here's an example of how an LDAP server might use a {@code SaslServer}.
|
* Here's an example of how an LDAP server might use a {@code SaslServer}.
|
||||||
* It first gets an instance of a {@code SaslServer} for the SASL mechanism
|
* It first gets an instance of a {@code SaslServer} for the SASL mechanism
|
||||||
* requested by the client:
|
* requested by the client:
|
||||||
*<blockquote><pre>
|
* <blockquote><pre>
|
||||||
* SaslServer ss = Sasl.createSaslServer(mechanism,
|
* SaslServer ss = Sasl.createSaslServer(mechanism,
|
||||||
* "ldap", myFQDN, props, callbackHandler);
|
* "ldap", myFQDN, props, callbackHandler);
|
||||||
*</pre></blockquote>
|
* </pre></blockquote>
|
||||||
* It can then proceed to use the server for authentication.
|
* It can then proceed to use the server for authentication.
|
||||||
* For example, suppose the LDAP server received an LDAP BIND request
|
* For example, suppose the LDAP server received an LDAP BIND request
|
||||||
* containing the name of the SASL mechanism and an (optional) initial
|
* containing the name of the SASL mechanism and an (optional) initial
|
||||||
* response. It then might use the server as follows:
|
* response. It then might use the server as follows:
|
||||||
*<blockquote><pre>{@code
|
* <blockquote><pre>{@code
|
||||||
* while (!ss.isComplete()) {
|
* while (!ss.isComplete()) {
|
||||||
* try {
|
* try {
|
||||||
* byte[] challenge = ss.evaluateResponse(response);
|
* byte[] challenge = ss.evaluateResponse(response);
|
||||||
|
@ -55,7 +55,7 @@ package javax.security.sasl;
|
||||||
* status = ldap.sendBindResponse(mechanism, challenge, SUCCESS);
|
* status = ldap.sendBindResponse(mechanism, challenge, SUCCESS);
|
||||||
* } else {
|
* } else {
|
||||||
* status = ldap.sendBindResponse(mechanism, challenge,
|
* status = ldap.sendBindResponse(mechanism, challenge,
|
||||||
SASL_BIND_IN_PROGRESS);
|
* SASL_BIND_IN_PROGRESS);
|
||||||
* response = ldap.readBindRequest();
|
* response = ldap.readBindRequest();
|
||||||
* }
|
* }
|
||||||
* } catch (SaslException e) {
|
* } catch (SaslException e) {
|
||||||
|
@ -75,7 +75,7 @@ package javax.security.sasl;
|
||||||
* ldap.out = new SecureOutputStream(ss, ldap.out);
|
* ldap.out = new SecureOutputStream(ss, ldap.out);
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
*}</pre></blockquote>
|
* }</pre></blockquote>
|
||||||
*
|
*
|
||||||
* @since 1.5
|
* @since 1.5
|
||||||
*
|
*
|
||||||
|
@ -145,7 +145,7 @@ public abstract interface SaslServer {
|
||||||
* the authentication exchange has negotiated integrity and/or privacy
|
* the authentication exchange has negotiated integrity and/or privacy
|
||||||
* as the quality of protection; otherwise,
|
* as the quality of protection; otherwise,
|
||||||
* an {@code IllegalStateException} is thrown.
|
* an {@code IllegalStateException} is thrown.
|
||||||
*<p>
|
* <p>
|
||||||
* {@code incoming} is the contents of the SASL buffer as defined in RFC 2222
|
* {@code incoming} is the contents of the SASL buffer as defined in RFC 2222
|
||||||
* without the leading four octet field that represents the length.
|
* without the leading four octet field that represents the length.
|
||||||
* {@code offset} and {@code len} specify the portion of {@code incoming}
|
* {@code offset} and {@code len} specify the portion of {@code incoming}
|
||||||
|
@ -171,7 +171,7 @@ public abstract interface SaslServer {
|
||||||
* completed (i.e., when {@code isComplete()} returns true) and only if
|
* completed (i.e., when {@code isComplete()} returns true) and only if
|
||||||
* the authentication exchange has negotiated integrity and/or privacy
|
* the authentication exchange has negotiated integrity and/or privacy
|
||||||
* as the quality of protection; otherwise, a {@code SaslException} is thrown.
|
* as the quality of protection; otherwise, a {@code SaslException} is thrown.
|
||||||
*<p>
|
* <p>
|
||||||
* The result of this method
|
* The result of this method
|
||||||
* will make up the contents of the SASL buffer as defined in RFC 2222
|
* will make up the contents of the SASL buffer as defined in RFC 2222
|
||||||
* without the leading four octet field that represents the length.
|
* without the leading four octet field that represents the length.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Copyright (c) 2002 Graz University of Technology. All rights reserved.
|
/* Copyright (c) 2002 Graz University of Technology. All rights reserved.
|
||||||
|
@ -774,7 +774,7 @@ public class PKCS11 {
|
||||||
* @param outLen buffer size for the encrypted data
|
* @param outLen buffer size for the encrypted data
|
||||||
* @return the length of encrypted data for this update
|
* @return the length of encrypted data for this update
|
||||||
* (PKCS#11 param: CK_BYTE_PTR pEncryptedPart,
|
* (PKCS#11 param: CK_BYTE_PTR pEncryptedPart,
|
||||||
CK_ULONG_PTR pulEncryptedPartLen)
|
* CK_ULONG_PTR pulEncryptedPartLen)
|
||||||
* @exception PKCS11Exception If function returns other value than CKR_OK.
|
* @exception PKCS11Exception If function returns other value than CKR_OK.
|
||||||
* @preconditions
|
* @preconditions
|
||||||
* @postconditions
|
* @postconditions
|
||||||
|
@ -797,7 +797,7 @@ public class PKCS11 {
|
||||||
* @param outLen buffer size for the encrypted data
|
* @param outLen buffer size for the encrypted data
|
||||||
* @return the length of the last part of the encrypted data
|
* @return the length of the last part of the encrypted data
|
||||||
* (PKCS#11 param: CK_BYTE_PTR pLastEncryptedPart,
|
* (PKCS#11 param: CK_BYTE_PTR pLastEncryptedPart,
|
||||||
CK_ULONG_PTR pulLastEncryptedPartLen)
|
* CK_ULONG_PTR pulLastEncryptedPartLen)
|
||||||
* @exception PKCS11Exception If function returns other value than CKR_OK.
|
* @exception PKCS11Exception If function returns other value than CKR_OK.
|
||||||
* @preconditions
|
* @preconditions
|
||||||
* @postconditions
|
* @postconditions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
@ -38,7 +38,6 @@ import java.io.IOException;
|
||||||
import sun.security.util.ConsoleCallbackHandler;
|
import sun.security.util.ConsoleCallbackHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
|
||||||
* Prompts and reads from the command line for answers to authentication
|
* Prompts and reads from the command line for answers to authentication
|
||||||
* questions.
|
* questions.
|
||||||
* This can be used by a JAAS application to instantiate a
|
* This can be used by a JAAS application to instantiate a
|
||||||
|
@ -50,11 +49,10 @@ public class TextCallbackHandler implements CallbackHandler {
|
||||||
private final CallbackHandler consoleHandler;
|
private final CallbackHandler consoleHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Creates a callback handler that prompts and reads from the
|
* Creates a callback handler that prompts and reads from the
|
||||||
* command line for answers to authentication questions.
|
* command line for answers to authentication questions.
|
||||||
* This can be used by JAAS applications to instantiate a
|
* This can be used by JAAS applications to instantiate a
|
||||||
* CallbackHandler.
|
* CallbackHandler.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
public TextCallbackHandler() {
|
public TextCallbackHandler() {
|
||||||
this.consoleHandler = new ConsoleCallbackHandler();
|
this.consoleHandler = new ConsoleCallbackHandler();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue