jdk/src/share/classes/javax/crypto/KeyAgreement.java
changeset 18771 9dadb0719cea
parent 10336 0bb1999251f8
equal deleted inserted replaced
18770:b71393f8e3e4 18771:9dadb0719cea
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   147      *
   147      *
   148      * @param algorithm the standard name of the requested key agreement
   148      * @param algorithm the standard name of the requested key agreement
   149      * algorithm.
   149      * algorithm.
   150      * See the KeyAgreement section in the <a href=
   150      * See the KeyAgreement section in the <a href=
   151      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   151      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   152      * Java Cryptography Architecture Standard Algorithm Name Documentation
   152      * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
   153      * for information about standard algorithm names.
   153      * for information about standard algorithm names.
   154      *
   154      *
   155      * @return the new <code>KeyAgreement</code> object.
   155      * @return the new <code>KeyAgreement</code> object.
   156      *
   156      *
   157      * @exception NullPointerException if the specified algorithm
   157      * @exception NullPointerException if the specified algorithm
   194      *
   194      *
   195      * @param algorithm the standard name of the requested key agreement
   195      * @param algorithm the standard name of the requested key agreement
   196      * algorithm.
   196      * algorithm.
   197      * See the KeyAgreement section in the <a href=
   197      * See the KeyAgreement section in the <a href=
   198      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   198      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   199      * Java Cryptography Architecture Standard Algorithm Name Documentation
   199      * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
   200      * for information about standard algorithm names.
   200      * for information about standard algorithm names.
   201      *
   201      *
   202      * @param provider the name of the provider.
   202      * @param provider the name of the provider.
   203      *
   203      *
   204      * @return the new <code>KeyAgreement</code> object.
   204      * @return the new <code>KeyAgreement</code> object.
   238      *
   238      *
   239      * @param algorithm the standard name of the requested key agreement
   239      * @param algorithm the standard name of the requested key agreement
   240      * algorithm.
   240      * algorithm.
   241      * See the KeyAgreement section in the <a href=
   241      * See the KeyAgreement section in the <a href=
   242      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   242      * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyAgreement">
   243      * Java Cryptography Architecture Standard Algorithm Name Documentation
   243      * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
   244      * for information about standard algorithm names.
   244      * for information about standard algorithm names.
   245      *
   245      *
   246      * @param provider the provider.
   246      * @param provider the provider.
   247      *
   247      *
   248      * @return the new <code>KeyAgreement</code> object.
   248      * @return the new <code>KeyAgreement</code> object.
   416      * Initializes this key agreement with the given key, which is required to
   416      * Initializes this key agreement with the given key, which is required to
   417      * contain all the algorithm parameters required for this key agreement.
   417      * contain all the algorithm parameters required for this key agreement.
   418      *
   418      *
   419      * <p> If this key agreement requires any random bytes, it will get
   419      * <p> If this key agreement requires any random bytes, it will get
   420      * them using the
   420      * them using the
   421      * {@link SecureRandom <code>SecureRandom</code>}
   421      * {@link java.security.SecureRandom}
   422      * implementation of the highest-priority
   422      * implementation of the highest-priority
   423      * installed provider as the source of randomness.
   423      * installed provider as the source of randomness.
   424      * (If none of the installed providers supply an implementation of
   424      * (If none of the installed providers supply an implementation of
   425      * SecureRandom, a system-provided source of randomness will be used.)
   425      * SecureRandom, a system-provided source of randomness will be used.)
   426      *
   426      *
   474      * Initializes this key agreement with the given key and set of
   474      * Initializes this key agreement with the given key and set of
   475      * algorithm parameters.
   475      * algorithm parameters.
   476      *
   476      *
   477      * <p> If this key agreement requires any random bytes, it will get
   477      * <p> If this key agreement requires any random bytes, it will get
   478      * them using the
   478      * them using the
   479      * {@link SecureRandom <code>SecureRandom</code>}
   479      * {@link java.security.SecureRandom}
   480      * implementation of the highest-priority
   480      * implementation of the highest-priority
   481      * installed provider as the source of randomness.
   481      * installed provider as the source of randomness.
   482      * (If none of the installed providers supply an implementation of
   482      * (If none of the installed providers supply an implementation of
   483      * SecureRandom, a system-provided source of randomness will be used.)
   483      * SecureRandom, a system-provided source of randomness will be used.)
   484      *
   484      *