Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
de5fa31c
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
de5fa31c
编写于
7月 31, 2015
作者:
E
ebaron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8132130: some docs cleanup
Summary: some docs cleanup Reviewed-by: andrew
上级
84521fd4
变更
77
显示空白变更内容
内联
并排
Showing
77 changed file
with
193 addition
and
202 deletion
+193
-202
src/share/classes/com/sun/crypto/provider/BlowfishCipher.java
...share/classes/com/sun/crypto/provider/BlowfishCipher.java
+1
-1
src/share/classes/com/sun/crypto/provider/DESCipher.java
src/share/classes/com/sun/crypto/provider/DESCipher.java
+1
-1
src/share/classes/com/sun/crypto/provider/DESedeCipher.java
src/share/classes/com/sun/crypto/provider/DESedeCipher.java
+1
-1
src/share/classes/com/sun/crypto/provider/DESedeWrapCipher.java
...are/classes/com/sun/crypto/provider/DESedeWrapCipher.java
+13
-16
src/share/classes/com/sun/crypto/provider/DHKeyPairGenerator.java
...e/classes/com/sun/crypto/provider/DHKeyPairGenerator.java
+1
-1
src/share/classes/com/sun/crypto/provider/DHParameterGenerator.java
...classes/com/sun/crypto/provider/DHParameterGenerator.java
+1
-1
src/share/classes/com/sun/crypto/provider/PBEWithMD5AndDESCipher.java
...asses/com/sun/crypto/provider/PBEWithMD5AndDESCipher.java
+1
-1
src/share/classes/com/sun/crypto/provider/PBEWithMD5AndTripleDESCipher.java
...com/sun/crypto/provider/PBEWithMD5AndTripleDESCipher.java
+1
-1
src/share/classes/com/sun/crypto/provider/PBKDF2HmacSHA1Factory.java
...lasses/com/sun/crypto/provider/PBKDF2HmacSHA1Factory.java
+1
-1
src/share/classes/com/sun/security/sasl/digest/FactoryImpl.java
...are/classes/com/sun/security/sasl/digest/FactoryImpl.java
+3
-3
src/share/classes/com/sun/security/sasl/ntlm/FactoryImpl.java
...share/classes/com/sun/security/sasl/ntlm/FactoryImpl.java
+3
-3
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMCryptoBinary.java
...lasses/org/jcp/xml/dsig/internal/dom/DOMCryptoBinary.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
...are/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
+3
-3
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
...e/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
+0
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
...org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
+0
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
...s/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
+0
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMTransform.java
...e/classes/org/jcp/xml/dsig/internal/dom/DOMTransform.java
+17
-17
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
...re/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
+0
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
...e/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
+0
-1
src/share/classes/sun/security/jgss/GSSCredentialImpl.java
src/share/classes/sun/security/jgss/GSSCredentialImpl.java
+2
-2
src/share/classes/sun/security/jgss/GSSToken.java
src/share/classes/sun/security/jgss/GSSToken.java
+7
-7
src/share/classes/sun/security/jgss/LoginConfigImpl.java
src/share/classes/sun/security/jgss/LoginConfigImpl.java
+1
-1
src/share/classes/sun/security/jgss/ProviderList.java
src/share/classes/sun/security/jgss/ProviderList.java
+3
-3
src/share/classes/sun/security/jgss/krb5/Krb5NameElement.java
...share/classes/sun/security/jgss/krb5/Krb5NameElement.java
+2
-2
src/share/classes/sun/security/jgss/spi/GSSContextSpi.java
src/share/classes/sun/security/jgss/spi/GSSContextSpi.java
+6
-6
src/share/classes/sun/security/jgss/spi/GSSNameSpi.java
src/share/classes/sun/security/jgss/spi/GSSNameSpi.java
+2
-2
src/share/classes/sun/security/jgss/spi/MechanismFactory.java
...share/classes/sun/security/jgss/spi/MechanismFactory.java
+1
-1
src/share/classes/sun/security/krb5/Checksum.java
src/share/classes/sun/security/krb5/Checksum.java
+4
-4
src/share/classes/sun/security/krb5/Config.java
src/share/classes/sun/security/krb5/Config.java
+2
-2
src/share/classes/sun/security/krb5/Credentials.java
src/share/classes/sun/security/krb5/Credentials.java
+1
-1
src/share/classes/sun/security/krb5/EncryptedData.java
src/share/classes/sun/security/krb5/EncryptedData.java
+3
-3
src/share/classes/sun/security/krb5/EncryptionKey.java
src/share/classes/sun/security/krb5/EncryptionKey.java
+6
-6
src/share/classes/sun/security/krb5/KrbAsReqBuilder.java
src/share/classes/sun/security/krb5/KrbAsReqBuilder.java
+1
-1
src/share/classes/sun/security/krb5/PrincipalName.java
src/share/classes/sun/security/krb5/PrincipalName.java
+6
-5
src/share/classes/sun/security/krb5/Realm.java
src/share/classes/sun/security/krb5/Realm.java
+2
-3
src/share/classes/sun/security/krb5/internal/APOptions.java
src/share/classes/sun/security/krb5/internal/APOptions.java
+2
-2
src/share/classes/sun/security/krb5/internal/APRep.java
src/share/classes/sun/security/krb5/internal/APRep.java
+2
-2
src/share/classes/sun/security/krb5/internal/APReq.java
src/share/classes/sun/security/krb5/internal/APReq.java
+2
-2
src/share/classes/sun/security/krb5/internal/Authenticator.java
...are/classes/sun/security/krb5/internal/Authenticator.java
+2
-2
src/share/classes/sun/security/krb5/internal/EncAPRepPart.java
...hare/classes/sun/security/krb5/internal/EncAPRepPart.java
+2
-2
src/share/classes/sun/security/krb5/internal/EncKDCRepPart.java
...are/classes/sun/security/krb5/internal/EncKDCRepPart.java
+2
-2
src/share/classes/sun/security/krb5/internal/EncKrbCredPart.java
...re/classes/sun/security/krb5/internal/EncKrbCredPart.java
+2
-2
src/share/classes/sun/security/krb5/internal/EncKrbPrivPart.java
...re/classes/sun/security/krb5/internal/EncKrbPrivPart.java
+2
-2
src/share/classes/sun/security/krb5/internal/EncTicketPart.java
...are/classes/sun/security/krb5/internal/EncTicketPart.java
+2
-2
src/share/classes/sun/security/krb5/internal/HostAddress.java
...share/classes/sun/security/krb5/internal/HostAddress.java
+3
-3
src/share/classes/sun/security/krb5/internal/HostAddresses.java
...are/classes/sun/security/krb5/internal/HostAddresses.java
+2
-2
src/share/classes/sun/security/krb5/internal/KDCOptions.java
src/share/classes/sun/security/krb5/internal/KDCOptions.java
+3
-3
src/share/classes/sun/security/krb5/internal/KDCRep.java
src/share/classes/sun/security/krb5/internal/KDCRep.java
+2
-2
src/share/classes/sun/security/krb5/internal/KDCReq.java
src/share/classes/sun/security/krb5/internal/KDCReq.java
+3
-3
src/share/classes/sun/security/krb5/internal/KDCReqBody.java
src/share/classes/sun/security/krb5/internal/KDCReqBody.java
+2
-2
src/share/classes/sun/security/krb5/internal/KRBCred.java
src/share/classes/sun/security/krb5/internal/KRBCred.java
+2
-2
src/share/classes/sun/security/krb5/internal/KRBError.java
src/share/classes/sun/security/krb5/internal/KRBError.java
+2
-2
src/share/classes/sun/security/krb5/internal/KRBPriv.java
src/share/classes/sun/security/krb5/internal/KRBPriv.java
+2
-2
src/share/classes/sun/security/krb5/internal/KRBSafe.java
src/share/classes/sun/security/krb5/internal/KRBSafe.java
+2
-2
src/share/classes/sun/security/krb5/internal/KRBSafeBody.java
...share/classes/sun/security/krb5/internal/KRBSafeBody.java
+2
-2
src/share/classes/sun/security/krb5/internal/KerberosTime.java
...hare/classes/sun/security/krb5/internal/KerberosTime.java
+1
-3
src/share/classes/sun/security/krb5/internal/KrbCredInfo.java
...share/classes/sun/security/krb5/internal/KrbCredInfo.java
+2
-2
src/share/classes/sun/security/krb5/internal/LastReq.java
src/share/classes/sun/security/krb5/internal/LastReq.java
+2
-2
src/share/classes/sun/security/krb5/internal/LoginOptions.java
...hare/classes/sun/security/krb5/internal/LoginOptions.java
+2
-2
src/share/classes/sun/security/krb5/internal/MethodData.java
src/share/classes/sun/security/krb5/internal/MethodData.java
+2
-2
src/share/classes/sun/security/krb5/internal/PAData.java
src/share/classes/sun/security/krb5/internal/PAData.java
+9
-6
src/share/classes/sun/security/krb5/internal/PAEncTSEnc.java
src/share/classes/sun/security/krb5/internal/PAEncTSEnc.java
+2
-2
src/share/classes/sun/security/krb5/internal/PAForUserEnc.java
...hare/classes/sun/security/krb5/internal/PAForUserEnc.java
+2
-2
src/share/classes/sun/security/krb5/internal/Ticket.java
src/share/classes/sun/security/krb5/internal/Ticket.java
+2
-2
src/share/classes/sun/security/krb5/internal/TransitedEncoding.java
...classes/sun/security/krb5/internal/TransitedEncoding.java
+2
-2
src/share/classes/sun/security/krb5/internal/crypto/Des.java
src/share/classes/sun/security/krb5/internal/crypto/Des.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/DesMacCksumType.java
...es/sun/security/krb5/internal/crypto/DesMacCksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/HmacMd5ArcFourCksumType.java
...ecurity/krb5/internal/crypto/HmacMd5ArcFourCksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Aes128CksumType.java
...ecurity/krb5/internal/crypto/HmacSha1Aes128CksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Aes256CksumType.java
...ecurity/krb5/internal/crypto/HmacSha1Aes256CksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Des3KdCksumType.java
...ecurity/krb5/internal/crypto/HmacSha1Des3KdCksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/crypto/RsaMd5DesCksumType.java
...sun/security/krb5/internal/crypto/RsaMd5DesCksumType.java
+1
-1
src/share/classes/sun/security/krb5/internal/ktab/KeyTab.java
...share/classes/sun/security/krb5/internal/ktab/KeyTab.java
+1
-1
src/share/classes/sun/security/krb5/internal/rcache/AuthList.java
...e/classes/sun/security/krb5/internal/rcache/AuthList.java
+1
-1
src/share/classes/sun/security/pkcs11/wrapper/CK_CREATEMUTEX.java
...e/classes/sun/security/pkcs11/wrapper/CK_CREATEMUTEX.java
+3
-4
src/windows/classes/sun/security/krb5/internal/tools/Kinit.java
...ndows/classes/sun/security/krb5/internal/tools/Kinit.java
+12
-15
src/windows/classes/sun/security/krb5/internal/tools/Klist.java
...ndows/classes/sun/security/krb5/internal/tools/Klist.java
+2
-0
未找到文件。
src/share/classes/com/sun/crypto/provider/BlowfishCipher.java
浏览文件 @
de5fa31c
...
@@ -82,7 +82,7 @@ public final class BlowfishCipher extends CipherSpi {
...
@@ -82,7 +82,7 @@ public final class BlowfishCipher extends CipherSpi {
/**
/**
* Sets the padding mechanism of this cipher.
* Sets the padding mechanism of this cipher.
*
*
* @param padding the padding mechanism
* @param padding
Scheme
the padding mechanism
*
*
* @exception NoSuchPaddingException if the requested padding mechanism
* @exception NoSuchPaddingException if the requested padding mechanism
* does not exist
* does not exist
...
...
src/share/classes/com/sun/crypto/provider/DESCipher.java
浏览文件 @
de5fa31c
...
@@ -77,7 +77,7 @@ public final class DESCipher extends CipherSpi {
...
@@ -77,7 +77,7 @@ public final class DESCipher extends CipherSpi {
/**
/**
* Sets the padding mechanism of this cipher.
* Sets the padding mechanism of this cipher.
*
*
* @param padding the padding mechanism
* @param padding
Scheme
the padding mechanism
*
*
* @exception NoSuchPaddingException if the requested padding mechanism
* @exception NoSuchPaddingException if the requested padding mechanism
* does not exist
* does not exist
...
...
src/share/classes/com/sun/crypto/provider/DESedeCipher.java
浏览文件 @
de5fa31c
...
@@ -74,7 +74,7 @@ public final class DESedeCipher extends CipherSpi {
...
@@ -74,7 +74,7 @@ public final class DESedeCipher extends CipherSpi {
/**
/**
* Sets the padding mechanism of this cipher.
* Sets the padding mechanism of this cipher.
*
*
* @param padding the padding mechanism
* @param padding
Scheme
the padding mechanism
*
*
* @exception NoSuchPaddingException if the requested padding mechanism
* @exception NoSuchPaddingException if the requested padding mechanism
* does not exist
* does not exist
...
...
src/share/classes/com/sun/crypto/provider/DESedeWrapCipher.java
浏览文件 @
de5fa31c
...
@@ -32,7 +32,7 @@ import javax.crypto.spec.*;
...
@@ -32,7 +32,7 @@ import javax.crypto.spec.*;
/**
/**
* This class implements the CMS DESede KeyWrap algorithm as defined
* This class implements the CMS DESede KeyWrap algorithm as defined
* in <a href=http://www.w3.org/TR/xmlenc-core/#sec-Alg-SymmetricKeyWrap>
* in <a href=http://www.w3.org/TR/xmlenc-core/#sec-Alg-SymmetricKeyWrap>
</a>
* "XML Encryption Syntax and Processing" section 5.6.2
* "XML Encryption Syntax and Processing" section 5.6.2
* "CMS Triple DES Key Wrap".
* "CMS Triple DES Key Wrap".
* Note: only <code>CBC</code> mode and <code>NoPadding</code> padding
* Note: only <code>CBC</code> mode and <code>NoPadding</code> padding
...
@@ -159,9 +159,8 @@ public final class DESedeWrapCipher extends CipherSpi {
...
@@ -159,9 +159,8 @@ public final class DESedeWrapCipher extends CipherSpi {
/**
/**
* Initializes this cipher with a key and a source of randomness.
* Initializes this cipher with a key and a source of randomness.
*
*
* <p>The cipher only supports the following two operation modes:<b>
* <p>The cipher only supports the following two operation modes:
* Cipher.WRAP_MODE, and <b>
* {@code Cipher.WRAP_MODE}, and {@code Cipher.UNWRAP_MODE}.
* Cipher.UNWRAP_MODE.
* <p>For modes other than the above two, UnsupportedOperationException
* <p>For modes other than the above two, UnsupportedOperationException
* will be thrown.
* will be thrown.
* <p>If this cipher requires an initialization vector (IV), it will get
* <p>If this cipher requires an initialization vector (IV), it will get
...
@@ -192,9 +191,8 @@ public final class DESedeWrapCipher extends CipherSpi {
...
@@ -192,9 +191,8 @@ public final class DESedeWrapCipher extends CipherSpi {
* Initializes this cipher with a key, a set of algorithm parameters,
* Initializes this cipher with a key, a set of algorithm parameters,
* and a source of randomness.
* and a source of randomness.
*
*
* <p>The cipher only supports the following two operation modes:<b>
* <p>The cipher only supports the following two operation modes:
* Cipher.WRAP_MODE, and <b>
* {@code Cipher.WRAP_MODE}, and {@code Cipher.UNWRAP_MODE}.
* Cipher.UNWRAP_MODE.
* <p>For modes other than the above two, UnsupportedOperationException
* <p>For modes other than the above two, UnsupportedOperationException
* will be thrown.
* will be thrown.
* <p>If this cipher requires an initialization vector (IV), it will get
* <p>If this cipher requires an initialization vector (IV), it will get
...
@@ -252,9 +250,8 @@ public final class DESedeWrapCipher extends CipherSpi {
...
@@ -252,9 +250,8 @@ public final class DESedeWrapCipher extends CipherSpi {
* Initializes this cipher with a key, a set of algorithm parameters,
* Initializes this cipher with a key, a set of algorithm parameters,
* and a source of randomness.
* and a source of randomness.
*
*
* <p>The cipher only supports the following two operation modes:<b>
* <p>The cipher only supports the following two operation modes:
* Cipher.WRAP_MODE, and <b>
* {@code Cipher.WRAP_MODE}, and {@code Cipher.UNWRAP_MODE}.
* Cipher.UNWRAP_MODE.
* <p>For modes other than the above two, UnsupportedOperationException
* <p>For modes other than the above two, UnsupportedOperationException
* will be thrown.
* will be thrown.
* <p>If this cipher requires an initialization vector (IV), it will get
* <p>If this cipher requires an initialization vector (IV), it will get
...
@@ -360,15 +357,15 @@ public final class DESedeWrapCipher extends CipherSpi {
...
@@ -360,15 +357,15 @@ public final class DESedeWrapCipher extends CipherSpi {
* current Cipher.engineInit(...) implementation,
* current Cipher.engineInit(...) implementation,
* IllegalStateException will always be thrown upon invocation.
* IllegalStateException will always be thrown upon invocation.
*
*
* @param in the input buffer.
* @param in
put
the input buffer.
* @param in
Offset the offset in <code>in</code>
where the input
* @param in
putOffset the offset in {@code input}
where the input
* starts.
* starts.
* @param inLen the input length.
* @param in
put
Len the input length.
* @param out the buffer for the result.
* @param out
put
the buffer for the result.
* @param out
Offset the ofset in <code>out</code>
where the result
* @param out
putOffset the ofset in {@code output}
where the result
* is stored.
* is stored.
*
*
* @return the number of bytes stored in
<code>out</code>
.
* @return the number of bytes stored in
{@code out}
.
*
*
* @exception IllegalStateException upon invocation of this method.
* @exception IllegalStateException upon invocation of this method.
*/
*/
...
...
src/share/classes/com/sun/crypto/provider/DHKeyPairGenerator.java
浏览文件 @
de5fa31c
...
@@ -118,7 +118,7 @@ public final class DHKeyPairGenerator extends KeyPairGeneratorSpi {
...
@@ -118,7 +118,7 @@ public final class DHKeyPairGenerator extends KeyPairGeneratorSpi {
* generator, and optionally the requested size in bits of the random
* generator, and optionally the requested size in bits of the random
* exponent (private value).
* exponent (private value).
*
*
* @param
p
arams the parameter set used to generate the key pair
* @param
algP
arams the parameter set used to generate the key pair
* @param random the source of randomness
* @param random the source of randomness
*
*
* @exception InvalidAlgorithmParameterException if the given parameters
* @exception InvalidAlgorithmParameterException if the given parameters
...
...
src/share/classes/com/sun/crypto/provider/DHParameterGenerator.java
浏览文件 @
de5fa31c
...
@@ -92,7 +92,7 @@ public final class DHParameterGenerator extends AlgorithmParameterGeneratorSpi {
...
@@ -92,7 +92,7 @@ public final class DHParameterGenerator extends AlgorithmParameterGeneratorSpi {
* generation values, which specify the size of the prime modulus and
* generation values, which specify the size of the prime modulus and
* the size of the random exponent, both in bits.
* the size of the random exponent, both in bits.
*
*
* @param
params
the set of parameter generation values
* @param
genParamSpec
the set of parameter generation values
* @param random the source of randomness
* @param random the source of randomness
*
*
* @exception InvalidAlgorithmParameterException if the given parameter
* @exception InvalidAlgorithmParameterException if the given parameter
...
...
src/share/classes/com/sun/crypto/provider/PBEWithMD5AndDESCipher.java
浏览文件 @
de5fa31c
...
@@ -80,7 +80,7 @@ public final class PBEWithMD5AndDESCipher extends CipherSpi {
...
@@ -80,7 +80,7 @@ public final class PBEWithMD5AndDESCipher extends CipherSpi {
* Sets the padding mechanism of this cipher. This algorithm only uses
* Sets the padding mechanism of this cipher. This algorithm only uses
* PKCS #5 padding.
* PKCS #5 padding.
*
*
* @param padding the padding mechanism
* @param padding
Scheme
the padding mechanism
*
*
* @exception NoSuchPaddingException if the requested padding mechanism
* @exception NoSuchPaddingException if the requested padding mechanism
* is invalid
* is invalid
...
...
src/share/classes/com/sun/crypto/provider/PBEWithMD5AndTripleDESCipher.java
浏览文件 @
de5fa31c
...
@@ -92,7 +92,7 @@ public final class PBEWithMD5AndTripleDESCipher extends CipherSpi {
...
@@ -92,7 +92,7 @@ public final class PBEWithMD5AndTripleDESCipher extends CipherSpi {
* Sets the padding mechanism of this cipher. This algorithm only uses
* Sets the padding mechanism of this cipher. This algorithm only uses
* PKCS #5 padding.
* PKCS #5 padding.
*
*
* @param padding the padding mechanism
* @param padding
Scheme
the padding mechanism
*
*
* @exception NoSuchPaddingException if the requested padding mechanism
* @exception NoSuchPaddingException if the requested padding mechanism
* is invalid
* is invalid
...
...
src/share/classes/com/sun/crypto/provider/PBKDF2HmacSHA1Factory.java
浏览文件 @
de5fa31c
...
@@ -75,7 +75,7 @@ public final class PBKDF2HmacSHA1Factory extends SecretKeyFactorySpi {
...
@@ -75,7 +75,7 @@ public final class PBKDF2HmacSHA1Factory extends SecretKeyFactorySpi {
*
*
* @param key the key
* @param key the key
*
*
* @param keySpec the requested format in which the key material shall be
* @param keySpec
Cl
the requested format in which the key material shall be
* returned
* returned
*
*
* @return the underlying key specification (key material) in the
* @return the underlying key specification (key material) in the
...
...
src/share/classes/com/sun/security/sasl/digest/FactoryImpl.java
浏览文件 @
de5fa31c
...
@@ -60,7 +60,7 @@ SaslServerFactory{
...
@@ -60,7 +60,7 @@ SaslServerFactory{
*
*
* @throws SaslException If there is an error creating the DigestMD5
* @throws SaslException If there is an error creating the DigestMD5
* SASL client.
* SASL client.
* @return
s a new SaslClient
; otherwise null if unsuccessful.
* @return
a new SaslClient
; otherwise null if unsuccessful.
*/
*/
public
SaslClient
createSaslClient
(
String
[]
mechs
,
public
SaslClient
createSaslClient
(
String
[]
mechs
,
String
authorizationId
,
String
protocol
,
String
serverName
,
String
authorizationId
,
String
protocol
,
String
serverName
,
...
@@ -90,7 +90,7 @@ SaslServerFactory{
...
@@ -90,7 +90,7 @@ SaslServerFactory{
*
*
* @throws SaslException If there is an error creating the DigestMD5
* @throws SaslException If there is an error creating the DigestMD5
* SASL server.
* SASL server.
* @return
s a new SaslServer
; otherwise null if unsuccessful.
* @return
a new SaslServer
; otherwise null if unsuccessful.
*/
*/
public
SaslServer
createSaslServer
(
String
mech
,
public
SaslServer
createSaslServer
(
String
mech
,
String
protocol
,
String
serverName
,
Map
<
String
,?>
props
,
CallbackHandler
cbh
)
String
protocol
,
String
serverName
,
Map
<
String
,?>
props
,
CallbackHandler
cbh
)
...
@@ -114,7 +114,7 @@ SaslServerFactory{
...
@@ -114,7 +114,7 @@ SaslServerFactory{
/**
/**
* Returns the authentication mechanisms that this factory can produce.
* Returns the authentication mechanisms that this factory can produce.
*
*
* @return
s
String[] {"DigestMD5"} if policies in env match those of this
* @return String[] {"DigestMD5"} if policies in env match those of this
* factory.
* factory.
*/
*/
public
String
[]
getMechanismNames
(
Map
<
String
,?>
env
)
{
public
String
[]
getMechanismNames
(
Map
<
String
,?>
env
)
{
...
...
src/share/classes/com/sun/security/sasl/ntlm/FactoryImpl.java
浏览文件 @
de5fa31c
...
@@ -57,7 +57,7 @@ SaslServerFactory{
...
@@ -57,7 +57,7 @@ SaslServerFactory{
/**
/**
* Returns a new instance of the NTLM SASL client mechanism.
* Returns a new instance of the NTLM SASL client mechanism.
* Argument checks are performed in SaslClient's constructor.
* Argument checks are performed in SaslClient's constructor.
* @return
s a new SaslClient
; otherwise null if unsuccessful.
* @return
a new SaslClient
; otherwise null if unsuccessful.
* @throws SaslException If there is an error creating the NTLM
* @throws SaslException If there is an error creating the NTLM
* SASL client.
* SASL client.
*/
*/
...
@@ -86,7 +86,7 @@ SaslServerFactory{
...
@@ -86,7 +86,7 @@ SaslServerFactory{
/**
/**
* Returns a new instance of the NTLM SASL server mechanism.
* Returns a new instance of the NTLM SASL server mechanism.
* Argument checks are performed in SaslServer's constructor.
* Argument checks are performed in SaslServer's constructor.
* @return
s a new SaslServer
; otherwise null if unsuccessful.
* @return
a new SaslServer
; otherwise null if unsuccessful.
* @throws SaslException If there is an error creating the NTLM
* @throws SaslException If there is an error creating the NTLM
* SASL server.
* SASL server.
*/
*/
...
@@ -116,7 +116,7 @@ SaslServerFactory{
...
@@ -116,7 +116,7 @@ SaslServerFactory{
/**
/**
* Returns the authentication mechanisms that this factory can produce.
* Returns the authentication mechanisms that this factory can produce.
*
*
* @return
s
String[] {"NTLM"} if policies in env match those of this
* @return String[] {"NTLM"} if policies in env match those of this
* factory.
* factory.
*/
*/
public
String
[]
getMechanismNames
(
Map
<
String
,?>
env
)
{
public
String
[]
getMechanismNames
(
Map
<
String
,?>
env
)
{
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMCryptoBinary.java
浏览文件 @
de5fa31c
...
@@ -41,12 +41,12 @@ import com.sun.org.apache.xml.internal.security.utils.Base64;
...
@@ -41,12 +41,12 @@ import com.sun.org.apache.xml.internal.security.utils.Base64;
* as defined in the W3C specification for XML-Signature Syntax and Processing.
* as defined in the W3C specification for XML-Signature Syntax and Processing.
* The XML Schema Definition is defined as:
* The XML Schema Definition is defined as:
*
*
* <
xmp>
* <
pre>{@code
* <simpleType name="CryptoBinary">
* <simpleType name="CryptoBinary">
* <restriction base = "base64Binary">
* <restriction base = "base64Binary">
* </restriction>
* </restriction>
* </simpleType>
* </simpleType>
*
</xmp
>
*
}</pre
>
*
*
* @author Sean Mullan
* @author Sean Mullan
*/
*/
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
浏览文件 @
de5fa31c
...
@@ -57,7 +57,7 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
...
@@ -57,7 +57,7 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
* and optional list of external elements.
* and optional list of external elements.
*
*
* @param keyPacket a PGP Key Material Packet as defined in section 5.5 of
* @param keyPacket a PGP Key Material Packet as defined in section 5.5 of
* <a href="http://www.ietf.org/rfc/rfc2440.txt"
/
>RFC 2440</a>. The
* <a href="http://www.ietf.org/rfc/rfc2440.txt">RFC 2440</a>. The
* array is cloned to prevent subsequent modification.
* array is cloned to prevent subsequent modification.
* @param other a list of {@link XMLStructure}s representing elements from
* @param other a list of {@link XMLStructure}s representing elements from
* an external namespace. The list is defensively copied to prevent
* an external namespace. The list is defensively copied to prevent
...
@@ -95,10 +95,10 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
...
@@ -95,10 +95,10 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
* optional key packet and list of external elements.
* optional key packet and list of external elements.
*
*
* @param keyId a PGP public key id as defined in section 11.2 of
* @param keyId a PGP public key id as defined in section 11.2 of
* <a href="http://www.ietf.org/rfc/rfc2440.txt"
/
>RFC 2440</a>. The
* <a href="http://www.ietf.org/rfc/rfc2440.txt">RFC 2440</a>. The
* array is cloned to prevent subsequent modification.
* array is cloned to prevent subsequent modification.
* @param keyPacket a PGP Key Material Packet as defined in section 5.5 of
* @param keyPacket a PGP Key Material Packet as defined in section 5.5 of
* <a href="http://www.ietf.org/rfc/rfc2440.txt"
/
>RFC 2440</a> (may
* <a href="http://www.ietf.org/rfc/rfc2440.txt">RFC 2440</a> (may
* be <code>null</code>). The array is cloned to prevent subsequent
* be <code>null</code>). The array is cloned to prevent subsequent
* modification.
* modification.
* @param other a list of {@link XMLStructure}s representing elements from
* @param other a list of {@link XMLStructure}s representing elements from
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
浏览文件 @
de5fa31c
...
@@ -112,7 +112,6 @@ public final class DOMReference extends DOMStructure
...
@@ -112,7 +112,6 @@ public final class DOMReference extends DOMStructure
* is defensively copied to protect against subsequent modification.
* is defensively copied to protect against subsequent modification.
* May be <code>null</code> or empty.
* May be <code>null</code> or empty.
* @param id the reference ID (may be <code>null</code>)
* @param id the reference ID (may be <code>null</code>)
* @return a <code>Reference</code>
* @throws NullPointerException if <code>dm</code> is <code>null</code>
* @throws NullPointerException if <code>dm</code> is <code>null</code>
* @throws ClassCastException if any of the <code>transforms</code> are
* @throws ClassCastException if any of the <code>transforms</code> are
* not of type <code>Transform</code>
* not of type <code>Transform</code>
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
浏览文件 @
de5fa31c
...
@@ -58,7 +58,6 @@ public final class DOMSignatureProperties extends DOMStructure
...
@@ -58,7 +58,6 @@ public final class DOMSignatureProperties extends DOMStructure
* @param properties a list of one or more {@link SignatureProperty}s. The
* @param properties a list of one or more {@link SignatureProperty}s. The
* list is defensively copied to protect against subsequent modification.
* list is defensively copied to protect against subsequent modification.
* @param id the Id (may be <code>null</code>)
* @param id the Id (may be <code>null</code>)
* @return a <code>DOMSignatureProperties</code>
* @throws ClassCastException if <code>properties</code> contains any
* @throws ClassCastException if <code>properties</code> contains any
* entries that are not of type {@link SignatureProperty}
* entries that are not of type {@link SignatureProperty}
* @throws IllegalArgumentException if <code>properties</code> is empty
* @throws IllegalArgumentException if <code>properties</code> is empty
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
浏览文件 @
de5fa31c
...
@@ -59,7 +59,6 @@ public final class DOMSignatureProperty extends DOMStructure
...
@@ -59,7 +59,6 @@ public final class DOMSignatureProperty extends DOMStructure
* is defensively copied to protect against subsequent modification.
* is defensively copied to protect against subsequent modification.
* @param target the target URI
* @param target the target URI
* @param id the Id (may be <code>null</code>)
* @param id the Id (may be <code>null</code>)
* @return a <code>SignatureProperty</code>
* @throws ClassCastException if <code>content</code> contains any
* @throws ClassCastException if <code>content</code> contains any
* entries that are not of type {@link XMLStructure}
* entries that are not of type {@link XMLStructure}
* @throws IllegalArgumentException if <code>content</code> is empty
* @throws IllegalArgumentException if <code>content</code> is empty
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMTransform.java
浏览文件 @
de5fa31c
...
@@ -53,7 +53,7 @@ public class DOMTransform extends DOMStructure implements Transform {
...
@@ -53,7 +53,7 @@ public class DOMTransform extends DOMStructure implements Transform {
protected
TransformService
spi
;
protected
TransformService
spi
;
/**
/**
* Creates a
<code>DOMTransform</code>
.
* Creates a
{@code DOMTransform}
.
*
*
* @param spi the TransformService
* @param spi the TransformService
*/
*/
...
@@ -62,7 +62,7 @@ public class DOMTransform extends DOMStructure implements Transform {
...
@@ -62,7 +62,7 @@ public class DOMTransform extends DOMStructure implements Transform {
}
}
/**
/**
* Creates a
<code>DOMTransform</code>
from an element. This constructor
* Creates a
{@code DOMTransform}
from an element. This constructor
* invokes the abstract {@link #unmarshalParams unmarshalParams} method to
* invokes the abstract {@link #unmarshalParams unmarshalParams} method to
* unmarshal any algorithm-specific input parameters.
* unmarshal any algorithm-specific input parameters.
*
*
...
@@ -138,10 +138,10 @@ public class DOMTransform extends DOMStructure implements Transform {
...
@@ -138,10 +138,10 @@ public class DOMTransform extends DOMStructure implements Transform {
* Transforms the specified data using the underlying transform algorithm.
* Transforms the specified data using the underlying transform algorithm.
*
*
* @param data the data to be transformed
* @param data the data to be transformed
* @param
sc the <code>XMLCryptoContext</code>
containing
* @param
xc the {@code XMLCryptoContext}
containing
*
additional context (may be <code>null</code>
if not applicable)
*
additional context (may be {@code null}
if not applicable)
* @return the transformed data
* @return the transformed data
* @throws NullPointerException if
<code>data</code> is <code>null</code>
* @throws NullPointerException if
{@code data} is {@code null}
* @throws XMLSignatureException if an unexpected error occurs while
* @throws XMLSignatureException if an unexpected error occurs while
* executing the transform
* executing the transform
*/
*/
...
@@ -155,12 +155,12 @@ public class DOMTransform extends DOMStructure implements Transform {
...
@@ -155,12 +155,12 @@ public class DOMTransform extends DOMStructure implements Transform {
* Transforms the specified data using the underlying transform algorithm.
* Transforms the specified data using the underlying transform algorithm.
*
*
* @param data the data to be transformed
* @param data the data to be transformed
* @param
sc the <code>XMLCryptoContext</code>
containing
* @param
xc the {@code XMLCryptoContext}
containing
*
additional context (may be <code>null</code>
if not applicable)
*
additional context (may be {@code null}
if not applicable)
* @param os the
<code>OutputStream</code>
that should be used to write
* @param os the
{@code OutputStream}
that should be used to write
* the transformed data to
* the transformed data to
* @return the transformed data
* @return the transformed data
* @throws NullPointerException if
<code>data</code> is <code>null</code>
* @throws NullPointerException if
{@code data} is {@code null}
* @throws XMLSignatureException if an unexpected error occurs while
* @throws XMLSignatureException if an unexpected error occurs while
* executing the transform
* executing the transform
*/
*/
...
@@ -201,16 +201,16 @@ public class DOMTransform extends DOMStructure implements Transform {
...
@@ -201,16 +201,16 @@ public class DOMTransform extends DOMStructure implements Transform {
/**
/**
* Transforms the specified data using the underlying transform algorithm.
* Transforms the specified data using the underlying transform algorithm.
* This method invokes the {@link #marshal marshal} method and passes it
* This method invokes the {@link #marshal marshal} method and passes it
* the specified
<code>DOMSignContext</code>
before transforming the data.
* the specified
{@code DOMSignContext}
before transforming the data.
*
*
* @param data the data to be transformed
* @param data the data to be transformed
* @param sc the
<code>XMLCryptoContext</code>
containing
* @param sc the
{@code XMLCryptoContext}
containing
* additional context (may be
<code>null</code>
if not applicable)
* additional context (may be
{@code null}
if not applicable)
* @param context the marshalling context
* @param context the marshalling context
* @return the transformed data
* @return the transformed data
* @throws MarshalException if an exception occurs while marshalling
* @throws MarshalException if an exception occurs while marshalling
* @throws NullPointerException if
<code>data</code> or <code>context</code>
* @throws NullPointerException if
{@code data} or {@code context}
* is
<code>null</code>
* is
{@code null}
* @throws XMLSignatureException if an unexpected error occurs while
* @throws XMLSignatureException if an unexpected error occurs while
* executing the transform
* executing the transform
*/
*/
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
浏览文件 @
de5fa31c
...
@@ -65,7 +65,6 @@ public final class DOMX509Data extends DOMStructure implements X509Data {
...
@@ -65,7 +65,6 @@ public final class DOMX509Data extends DOMStructure implements X509Data {
* or {@link javax.xml.dsig.XMLStructure} ({@link X509IssuerSerial}
* or {@link javax.xml.dsig.XMLStructure} ({@link X509IssuerSerial}
* objects or elements from an external namespace). The list is
* objects or elements from an external namespace). The list is
* defensively copied to protect against subsequent modification.
* defensively copied to protect against subsequent modification.
* @return a <code>X509Data</code>
* @throws NullPointerException if <code>content</code> is <code>null</code>
* @throws NullPointerException if <code>content</code> is <code>null</code>
* @throws IllegalArgumentException if <code>content</code> is empty
* @throws IllegalArgumentException if <code>content</code> is empty
* @throws ClassCastException if <code>content</code> contains any entries
* @throws ClassCastException if <code>content</code> contains any entries
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
浏览文件 @
de5fa31c
...
@@ -63,7 +63,6 @@ public final class DOMXMLObject extends DOMStructure implements XMLObject {
...
@@ -63,7 +63,6 @@ public final class DOMXMLObject extends DOMStructure implements XMLObject {
* @param id the Id (may be <code>null</code>)
* @param id the Id (may be <code>null</code>)
* @param mimeType the mime type (may be <code>null</code>)
* @param mimeType the mime type (may be <code>null</code>)
* @param encoding the encoding (may be <code>null</code>)
* @param encoding the encoding (may be <code>null</code>)
* @return an <code>XMLObject</code>
* @throws ClassCastException if <code>content</code> contains any
* @throws ClassCastException if <code>content</code> contains any
* entries that are not of type {@link XMLStructure}
* entries that are not of type {@link XMLStructure}
*/
*/
...
...
src/share/classes/sun/security/jgss/GSSCredentialImpl.java
浏览文件 @
de5fa31c
...
@@ -535,8 +535,8 @@ public class GSSCredentialImpl implements ExtendedGSSCredential {
...
@@ -535,8 +535,8 @@ public class GSSCredentialImpl implements ExtendedGSSCredential {
/**
/**
* Returns the specified mechanism's credential-element.
* Returns the specified mechanism's credential-element.
*
*
* @param mechOid
-
the oid for mechanism to retrieve
* @param mechOid the oid for mechanism to retrieve
* @param
throwExcep -
boolean indicating if the function is
* @param
initiate
boolean indicating if the function is
* to throw exception or return null when element is not
* to throw exception or return null when element is not
* found.
* found.
* @return mechanism credential object
* @return mechanism credential object
...
...
src/share/classes/sun/security/jgss/GSSToken.java
浏览文件 @
de5fa31c
...
@@ -84,7 +84,7 @@ public abstract class GSSToken {
...
@@ -84,7 +84,7 @@ public abstract class GSSToken {
*
*
* @param data the array containing the bytes of the integer value
* @param data the array containing the bytes of the integer value
* @param pos the offset in the array
* @param pos the offset in the array
* @size the number of bytes to read from the array.
* @
param
size the number of bytes to read from the array.
* @return the integer value
* @return the integer value
*/
*/
public
static
final
int
readLittleEndian
(
byte
[]
data
,
int
pos
,
int
size
)
{
public
static
final
int
readLittleEndian
(
byte
[]
data
,
int
pos
,
int
size
)
{
...
@@ -141,7 +141,7 @@ public abstract class GSSToken {
...
@@ -141,7 +141,7 @@ public abstract class GSSToken {
* Reads a two byte integer value from an InputStream.
* Reads a two byte integer value from an InputStream.
*
*
* @param is the InputStream to read from
* @param is the InputStream to read from
* @return
s
the integer value
* @return the integer value
* @throws IOException if some errors occurs while reading the integer
* @throws IOException if some errors occurs while reading the integer
* bytes.
* bytes.
*/
*/
...
@@ -155,7 +155,7 @@ public abstract class GSSToken {
...
@@ -155,7 +155,7 @@ public abstract class GSSToken {
*
*
* @param src the byte arra to read from
* @param src the byte arra to read from
* @param pos the offset to start reading from
* @param pos the offset to start reading from
* @return
s
the integer value
* @return the integer value
*/
*/
public
static
final
int
readInt
(
byte
[]
src
,
int
pos
)
{
public
static
final
int
readInt
(
byte
[]
src
,
int
pos
)
{
return
((
0xFF
&
src
[
pos
])<<
8
|
(
0xFF
&
src
[
pos
+
1
]));
return
((
0xFF
&
src
[
pos
])<<
8
|
(
0xFF
&
src
[
pos
+
1
]));
...
@@ -167,7 +167,7 @@ public abstract class GSSToken {
...
@@ -167,7 +167,7 @@ public abstract class GSSToken {
*
*
* @param is the InputStream to read from
* @param is the InputStream to read from
* @param buffer the buffer to store the bytes into
* @param buffer the buffer to store the bytes into
* @
param
throws EOFException if EOF is reached before all bytes are
* @throws EOFException if EOF is reached before all bytes are
* read.
* read.
* @throws IOException is an error occurs while reading
* @throws IOException is an error occurs while reading
*/
*/
...
@@ -184,7 +184,7 @@ public abstract class GSSToken {
...
@@ -184,7 +184,7 @@ public abstract class GSSToken {
* @param buffer the buffer to store the bytes into
* @param buffer the buffer to store the bytes into
* @param offset the offset to start storing at
* @param offset the offset to start storing at
* @param len the number of bytes to read
* @param len the number of bytes to read
* @
param
throws EOFException if EOF is reached before all bytes are
* @throws EOFException if EOF is reached before all bytes are
* read.
* read.
* @throws IOException is an error occurs while reading
* @throws IOException is an error occurs while reading
*/
*/
...
...
src/share/classes/sun/security/jgss/LoginConfigImpl.java
浏览文件 @
de5fa31c
...
@@ -59,7 +59,7 @@ public class LoginConfigImpl extends Configuration {
...
@@ -59,7 +59,7 @@ public class LoginConfigImpl extends Configuration {
* A new instance of LoginConfigImpl must be created for each login request
* A new instance of LoginConfigImpl must be created for each login request
* since it's only used by a single (caller, mech) pair
* since it's only used by a single (caller, mech) pair
* @param caller defined in GSSUtil as CALLER_XXX final fields
* @param caller defined in GSSUtil as CALLER_XXX final fields
* @param
oid
defined in GSSUtil as XXX_MECH_OID final fields
* @param
mech
defined in GSSUtil as XXX_MECH_OID final fields
*/
*/
public
LoginConfigImpl
(
GSSCaller
caller
,
Oid
mech
)
{
public
LoginConfigImpl
(
GSSCaller
caller
,
Oid
mech
)
{
...
...
src/share/classes/sun/security/jgss/ProviderList.java
浏览文件 @
de5fa31c
...
@@ -46,7 +46,7 @@ import sun.security.action.GetPropertyAction;
...
@@ -46,7 +46,7 @@ import sun.security.action.GetPropertyAction;
* queries this class whenever it needs a mechanism's factory.<p>
* queries this class whenever it needs a mechanism's factory.<p>
*
*
* This class stores an ordered list of pairs of the form
* This class stores an ordered list of pairs of the form
*
<provider, oid>
. When it attempts to instantiate a mechanism
*
{@code <provider, oid>}
. When it attempts to instantiate a mechanism
* defined by oid o, it steps through the list looking for an entry
* defined by oid o, it steps through the list looking for an entry
* with oid=o, or with oid=null. (An entry with oid=null matches all
* with oid=o, or with oid=null. (An entry with oid=null matches all
* mechanisms.) When it finds such an entry, the corresponding
* mechanisms.) When it finds such an entry, the corresponding
...
@@ -74,12 +74,12 @@ import sun.security.action.GetPropertyAction;
...
@@ -74,12 +74,12 @@ import sun.security.action.GetPropertyAction;
* the system ones don't suffice.<p>
* the system ones don't suffice.<p>
*
*
* If a mechanism's factory is being obtained from a provider as a
* If a mechanism's factory is being obtained from a provider as a
* result of encountering a entryof the form
<provider, oid>
where
* result of encountering a entryof the form
{@code <provider, oid>}
where
* oid is non-null, then the assumption is that the application added
* oid is non-null, then the assumption is that the application added
* this entry and it wants this mechanism to be obtained from this
* this entry and it wants this mechanism to be obtained from this
* provider. Thus is the provider does not actually contain the
* provider. Thus is the provider does not actually contain the
* requested mechanism, an exception will be thrown. However, if the
* requested mechanism, an exception will be thrown. However, if the
* entry were of the form
<provider, null>
, then it is viewed more
* entry were of the form
{@code <provider, null>}
, then it is viewed more
* liberally and is simply skipped over if the provider does not claim to
* liberally and is simply skipped over if the provider does not claim to
* support the requested mechanism.
* support the requested mechanism.
*/
*/
...
...
src/share/classes/sun/security/jgss/krb5/Krb5NameElement.java
浏览文件 @
de5fa31c
...
@@ -214,7 +214,7 @@ public class Krb5NameElement
...
@@ -214,7 +214,7 @@ public class Krb5NameElement
* return false.
* return false.
*
*
* @param other to be compared with
* @param other to be compared with
* @return
s
true if they both refer to the same entity, else false
* @return true if they both refer to the same entity, else false
* @exception GSSException with major codes of BAD_NAMETYPE,
* @exception GSSException with major codes of BAD_NAMETYPE,
* BAD_NAME, FAILURE
* BAD_NAME, FAILURE
*/
*/
...
@@ -239,7 +239,7 @@ public class Krb5NameElement
...
@@ -239,7 +239,7 @@ public class Krb5NameElement
* situation where an error occurs.
* situation where an error occurs.
*
*
* @param another the object to be compared to
* @param another the object to be compared to
* @return
s
true if they both refer to the same entity, else false
* @return true if they both refer to the same entity, else false
* @see #equals(GSSNameSpi)
* @see #equals(GSSNameSpi)
*/
*/
public
boolean
equals
(
Object
another
)
{
public
boolean
equals
(
Object
another
)
{
...
...
src/share/classes/sun/security/jgss/spi/GSSContextSpi.java
浏览文件 @
de5fa31c
...
@@ -52,14 +52,14 @@ import com.sun.security.jgss.*;
...
@@ -52,14 +52,14 @@ import com.sun.security.jgss.*;
* and the context flags before the context is fully established. The
* and the context flags before the context is fully established. The
* isProtReady method is used to indicate that these services are
* isProtReady method is used to indicate that these services are
* available.
* available.
*<p>
*
<p>
* <strong>
* <strong>
* Context establishment tokens are defined in a mechanism independent
* Context establishment tokens are defined in a mechanism independent
* format in section 3.1 of RFC 2743. The GSS-Framework will add
* format in section 3.1 of RFC 2743. The GSS-Framework will add
* and remove the mechanism independent header portion of this token format
* and remove the mechanism independent header portion of this token format
* depending on whether a token is received or is being sent. The mechanism
* depending on whether a token is received or is being sent. The mechanism
* should only generate or expect to read the inner-context token portion.
.
* should only generate or expect to read the inner-context token portion.
* <
p
>
* <
br
>
* On the other hands, tokens used for per-message calls are generated
* On the other hands, tokens used for per-message calls are generated
* entirely by the mechanism. It is possible that the mechanism chooses to
* entirely by the mechanism. It is possible that the mechanism chooses to
* encase inner-level per-message tokens in a header similar to that used
* encase inner-level per-message tokens in a header similar to that used
...
@@ -240,7 +240,7 @@ public interface GSSContextSpi {
...
@@ -240,7 +240,7 @@ public interface GSSContextSpi {
* asked to provide.
* asked to provide.
* @param confReq a flag indicating whether confidentiality will be
* @param confReq a flag indicating whether confidentiality will be
* requested or not
* requested or not
* @param
output
Size the maximum size of the output token
* @param
maxTok
Size the maximum size of the output token
* @return the maximum size for the input message that can be
* @return the maximum size for the input message that can be
* provided to the wrap() method in order to guarantee that these
* provided to the wrap() method in order to guarantee that these
* requirements are met.
* requirements are met.
...
@@ -255,7 +255,7 @@ public interface GSSContextSpi {
...
@@ -255,7 +255,7 @@ public interface GSSContextSpi {
* @param is the user-provided message to be protected
* @param is the user-provided message to be protected
* @param os the token to be sent to the peer. It includes
* @param os the token to be sent to the peer. It includes
* the message from <i>is</i> with the requested protection.
* the message from <i>is</i> with the requested protection.
* @param msgPro on input it contains the requested qop and
* @param msgPro
p
on input it contains the requested qop and
* confidentiality state, on output, the applied values
* confidentiality state, on output, the applied values
* @exception GSSException may be thrown
* @exception GSSException may be thrown
* @see unwrap
* @see unwrap
...
@@ -366,7 +366,7 @@ public interface GSSContextSpi {
...
@@ -366,7 +366,7 @@ public interface GSSContextSpi {
*
*
* @param is token generated by getMIC
* @param is token generated by getMIC
* @param msgStr the message to check integrity for
* @param msgStr the message to check integrity for
* @param m
sg
Prop will contain the applied QOP and confidentiality
* @param mProp will contain the applied QOP and confidentiality
* states of the token as well as any informatory status codes
* states of the token as well as any informatory status codes
* @exception GSSException may be thrown
* @exception GSSException may be thrown
*/
*/
...
...
src/share/classes/sun/security/jgss/spi/GSSNameSpi.java
浏览文件 @
de5fa31c
...
@@ -46,7 +46,7 @@ public interface GSSNameSpi {
...
@@ -46,7 +46,7 @@ public interface GSSNameSpi {
* return false.
* return false.
*
*
* @param name to be compared with
* @param name to be compared with
* @return
s
true if they both refer to the same entity, else false
* @return true if they both refer to the same entity, else false
* @exception GSSException with major codes of BAD_NAMETYPE,
* @exception GSSException with major codes of BAD_NAMETYPE,
* BAD_NAME, FAILURE
* BAD_NAME, FAILURE
*/
*/
...
@@ -60,7 +60,7 @@ public interface GSSNameSpi {
...
@@ -60,7 +60,7 @@ public interface GSSNameSpi {
* situation where an error occurs.
* situation where an error occurs.
*
*
* @param another the object to be compared to
* @param another the object to be compared to
* @return
s
true if they both refer to the same entity, else false
* @return true if they both refer to the same entity, else false
* @see #equals(GSSNameSpi)
* @see #equals(GSSNameSpi)
*/
*/
public
boolean
equals
(
Object
another
);
public
boolean
equals
(
Object
another
);
...
...
src/share/classes/sun/security/jgss/spi/MechanismFactory.java
浏览文件 @
de5fa31c
...
@@ -147,7 +147,7 @@ public interface MechanismFactory {
...
@@ -147,7 +147,7 @@ public interface MechanismFactory {
* <p>
* <p>
* An exported name will generally be passed in using this method.
* An exported name will generally be passed in using this method.
*
*
* @param name
Bytes
the bytes describing this entity to the mechanism
* @param name the bytes describing this entity to the mechanism
* @param nameType an Oid serving as a clue as to how the mechanism should
* @param nameType an Oid serving as a clue as to how the mechanism should
* interpret the nameStr
* interpret the nameStr
* @throws GSSException if any of the errors described in RFC 2743 for
* @throws GSSException if any of the errors described in RFC 2743 for
...
...
src/share/classes/sun/security/krb5/Checksum.java
浏览文件 @
de5fa31c
...
@@ -133,8 +133,8 @@ public class Checksum {
...
@@ -133,8 +133,8 @@ public class Checksum {
* own calculating and verification rules. It does has the same
* own calculating and verification rules. It does has the same
* ASN.1 encoding though.
* ASN.1 encoding though.
*
*
* @data the byte array of checksum.
* @
param
data the byte array of checksum.
* @new_cksumType the type of checksum.
* @
param
new_cksumType the type of checksum.
*/
*/
public
Checksum
(
byte
[]
data
,
int
new_cksumType
)
{
public
Checksum
(
byte
[]
data
,
int
new_cksumType
)
{
cksumType
=
new_cksumType
;
cksumType
=
new_cksumType
;
...
@@ -235,12 +235,12 @@ public class Checksum {
...
@@ -235,12 +235,12 @@ public class Checksum {
/**
/**
* Encodes a Checksum object.
* Encodes a Checksum object.
* <
xmp>
* <
pre>{@code
* Checksum ::= SEQUENCE {
* Checksum ::= SEQUENCE {
* cksumtype [0] Int32,
* cksumtype [0] Int32,
* checksum [1] OCTET STRING
* checksum [1] OCTET STRING
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/Config.java
浏览文件 @
de5fa31c
...
@@ -361,7 +361,7 @@ public class Config {
...
@@ -361,7 +361,7 @@ public class Config {
*
*
* @param s the string duration
* @param s the string duration
* @return time in seconds
* @return time in seconds
* @throw KrbException if format is illegal
* @throw
s
KrbException if format is illegal
*/
*/
public
static
int
duration
(
String
s
)
throws
KrbException
{
public
static
int
duration
(
String
s
)
throws
KrbException
{
...
@@ -423,7 +423,7 @@ public class Config {
...
@@ -423,7 +423,7 @@ public class Config {
* @param keys the keys
* @param keys the keys
* @return the int value, Integer.MIN_VALUE is returned if it cannot be
* @return the int value, Integer.MIN_VALUE is returned if it cannot be
* found or the value is not a legal integer.
* found or the value is not a legal integer.
* @throw IllegalArgumentException if any of the keys is illegal
* @throw
s
IllegalArgumentException if any of the keys is illegal
* @see #get(java.lang.String[])
* @see #get(java.lang.String[])
*/
*/
public
int
getIntValue
(
String
...
keys
)
{
public
int
getIntValue
(
String
...
keys
)
{
...
...
src/share/classes/sun/security/krb5/Credentials.java
浏览文件 @
de5fa31c
...
@@ -313,7 +313,7 @@ public class Credentials {
...
@@ -313,7 +313,7 @@ public class Credentials {
* @param ticketCache the path to the tickets file. A value
* @param ticketCache the path to the tickets file. A value
* of null will be accepted to indicate that the default
* of null will be accepted to indicate that the default
* path should be searched
* path should be searched
* @return
s
the TGT credentials or null if none were found. If the tgt
* @return the TGT credentials or null if none were found. If the tgt
* expired, it is the responsibility of the caller to determine this.
* expired, it is the responsibility of the caller to determine this.
*/
*/
public
static
Credentials
acquireTGTFromCache
(
PrincipalName
princ
,
public
static
Credentials
acquireTGTFromCache
(
PrincipalName
princ
,
...
...
src/share/classes/sun/security/krb5/EncryptedData.java
浏览文件 @
de5fa31c
...
@@ -259,20 +259,20 @@ public class EncryptedData implements Cloneable {
...
@@ -259,20 +259,20 @@ public class EncryptedData implements Cloneable {
/**
/**
* Returns an ASN.1 encoded EncryptedData type.
* Returns an ASN.1 encoded EncryptedData type.
*
*
* <
xmp>
* <
pre>{@code
* EncryptedData ::= SEQUENCE {
* EncryptedData ::= SEQUENCE {
* etype [0] Int32 -- EncryptionType --,
* etype [0] Int32 -- EncryptionType --,
* kvno [1] UInt32 OPTIONAL,
* kvno [1] UInt32 OPTIONAL,
* cipher [2] OCTET STRING -- ciphertext
* cipher [2] OCTET STRING -- ciphertext
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
* specification available at
* specification available at
* <a href="http://www.ietf.org/rfc/rfc4120.txt">
* <a href="http://www.ietf.org/rfc/rfc4120.txt">
* http://www.ietf.org/rfc/rfc4120.txt</a>.
* http://www.ietf.org/rfc/rfc4120.txt</a>.
*
<p>
*
* @return byte array of encoded EncryptedData object.
* @return byte array of encoded EncryptedData object.
* @exception Asn1Exception if an error occurs while decoding an
* @exception Asn1Exception if an error occurs while decoding an
* ASN1 encoded data.
* ASN1 encoded data.
...
...
src/share/classes/sun/security/krb5/EncryptionKey.java
浏览文件 @
de5fa31c
...
@@ -101,11 +101,11 @@ public class EncryptionKey
...
@@ -101,11 +101,11 @@ public class EncryptionKey
* Obtains all versions of the secret key of the principal from a
* Obtains all versions of the secret key of the principal from a
* keytab.
* keytab.
*
*
* @
P
aram princ the principal whose secret key is desired
* @
p
aram princ the principal whose secret key is desired
* @param keytab the path to the keytab file. A value of null
* @param keytab the path to the keytab file. A value of null
* will be accepted to indicate that the default path should be
* will be accepted to indicate that the default path should be
* searched.
* searched.
* @return
s
an array of secret keys or null if none were found.
* @return an array of secret keys or null if none were found.
*/
*/
public
static
EncryptionKey
[]
acquireSecretKeys
(
PrincipalName
princ
,
public
static
EncryptionKey
[]
acquireSecretKeys
(
PrincipalName
princ
,
String
keytab
)
{
String
keytab
)
{
...
@@ -127,7 +127,7 @@ public class EncryptionKey
...
@@ -127,7 +127,7 @@ public class EncryptionKey
* @param password NOT null
* @param password NOT null
* @param etype
* @param etype
* @param snp can be NULL
* @param snp can be NULL
* @return
s
never null
* @return never null
*/
*/
public
static
EncryptionKey
acquireSecretKey
(
PrincipalName
cname
,
public
static
EncryptionKey
acquireSecretKey
(
PrincipalName
cname
,
char
[]
password
,
int
etype
,
PAData
.
SaltAndParams
snp
)
char
[]
password
,
int
etype
,
PAData
.
SaltAndParams
snp
)
...
@@ -150,7 +150,7 @@ public class EncryptionKey
...
@@ -150,7 +150,7 @@ public class EncryptionKey
* @param salt NOT null
* @param salt NOT null
* @param etype
* @param etype
* @param s2kparams can be NULL
* @param s2kparams can be NULL
* @return
s
never null
* @return never null
*/
*/
public
static
EncryptionKey
acquireSecretKey
(
char
[]
password
,
public
static
EncryptionKey
acquireSecretKey
(
char
[]
password
,
String
salt
,
int
etype
,
byte
[]
s2kparams
)
String
salt
,
int
etype
,
byte
[]
s2kparams
)
...
@@ -381,11 +381,11 @@ public class EncryptionKey
...
@@ -381,11 +381,11 @@ public class EncryptionKey
/**
/**
* Returns the ASN.1 encoding of this EncryptionKey.
* Returns the ASN.1 encoding of this EncryptionKey.
*
*
* <
xmp>
* <
pre>{@code
* EncryptionKey ::= SEQUENCE {
* EncryptionKey ::= SEQUENCE {
* keytype[0] INTEGER,
* keytype[0] INTEGER,
* keyvalue[1] OCTET STRING }
* keyvalue[1] OCTET STRING }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/KrbAsReqBuilder.java
浏览文件 @
de5fa31c
...
@@ -112,7 +112,7 @@ public final class KrbAsReqBuilder {
...
@@ -112,7 +112,7 @@ public final class KrbAsReqBuilder {
* realm, where default realm will be used. This realm will be the target
* realm, where default realm will be used. This realm will be the target
* realm for AS-REQ. I believe a client should only get initial TGT from
* realm for AS-REQ. I believe a client should only get initial TGT from
* its own realm.
* its own realm.
* @param k
eys must not be null. i
f empty, might be quite useless.
* @param k
tab must not be null. I
f empty, might be quite useless.
* This argument will neither be modified nor stored by the method.
* This argument will neither be modified nor stored by the method.
* @throws KrbException
* @throws KrbException
*/
*/
...
...
src/share/classes/sun/security/krb5/PrincipalName.java
浏览文件 @
de5fa31c
...
@@ -45,14 +45,14 @@ import sun.security.krb5.internal.util.KerberosString;
...
@@ -45,14 +45,14 @@ import sun.security.krb5.internal.util.KerberosString;
/**
/**
* Implements the ASN.1 PrincipalName type and its realm in a single class.
* Implements the ASN.1 PrincipalName type and its realm in a single class.
* <
xmp>
* <
pre>{@code
* Realm ::= KerberosString
* Realm ::= KerberosString
*
*
* PrincipalName ::= SEQUENCE {
* PrincipalName ::= SEQUENCE {
* name-type [0] Int32,
* name-type [0] Int32,
* name-string [1] SEQUENCE OF KerberosString
* name-string [1] SEQUENCE OF KerberosString
* }
* }
*
</xmp
>
*
}</pre
>
* This class is immutable.
* This class is immutable.
* @see Realm
* @see Realm
*/
*/
...
@@ -219,14 +219,14 @@ public class PrincipalName implements Cloneable {
...
@@ -219,14 +219,14 @@ public class PrincipalName implements Cloneable {
/**
/**
* Returns the ASN.1 encoding of the
* Returns the ASN.1 encoding of the
* <
xmp>
* <
pre>{@code
* PrincipalName ::= SEQUENCE {
* PrincipalName ::= SEQUENCE {
* name-type [0] Int32,
* name-type [0] Int32,
* name-string [1] SEQUENCE OF KerberosString
* name-string [1] SEQUENCE OF KerberosString
* }
* }
*
*
* KerberosString ::= GeneralString (IA5String)
* KerberosString ::= GeneralString (IA5String)
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
@@ -657,7 +657,8 @@ public class PrincipalName implements Cloneable {
...
@@ -657,7 +657,8 @@ public class PrincipalName implements Cloneable {
* name, the second component is returned.
* name, the second component is returned.
* Null is returned if there are not two or more
* Null is returned if there are not two or more
* components in the name.
* components in the name.
* @returns instance component of a multi-component name.
*
* @return instance component of a multi-component name.
*/
*/
public
String
getInstanceComponent
()
public
String
getInstanceComponent
()
{
{
...
...
src/share/classes/sun/security/krb5/Realm.java
浏览文件 @
de5fa31c
...
@@ -41,9 +41,8 @@ import sun.security.krb5.internal.util.KerberosString;
...
@@ -41,9 +41,8 @@ import sun.security.krb5.internal.util.KerberosString;
/**
/**
* Implements the ASN.1 Realm type.
* Implements the ASN.1 Realm type.
*
*
* <xmp>
* {@code Realm ::= GeneralString}
* Realm ::= GeneralString
*
* </xmp>
* This class is immutable.
* This class is immutable.
*/
*/
public
class
Realm
implements
Cloneable
{
public
class
Realm
implements
Cloneable
{
...
...
src/share/classes/sun/security/krb5/internal/APOptions.java
浏览文件 @
de5fa31c
...
@@ -38,17 +38,17 @@ import java.io.IOException;
...
@@ -38,17 +38,17 @@ import java.io.IOException;
/**
/**
* Implements the ASN.1 APOptions type.
* Implements the ASN.1 APOptions type.
*
*
* <
xmp>
* <
pre>{@code
* APOptions ::= KerberosFlags
* APOptions ::= KerberosFlags
* -- reserved(0),
* -- reserved(0),
* -- use-session-key(1),
* -- use-session-key(1),
* -- mutual-required(2)
* -- mutual-required(2)
* </xmp>
*
*
* KerberosFlags ::= BIT STRING (SIZE (32..MAX))
* KerberosFlags ::= BIT STRING (SIZE (32..MAX))
* -- minimum number of bits shall be sent,
* -- minimum number of bits shall be sent,
* -- but no fewer than 32
* -- but no fewer than 32
*
*
* }</pre>
* <p>
* <p>
* This definition reflects the Network Working Group RFC4120
* This definition reflects the Network Working Group RFC4120
* specification available at
* specification available at
...
...
src/share/classes/sun/security/krb5/internal/APRep.java
浏览文件 @
de5fa31c
...
@@ -39,13 +39,13 @@ import java.math.BigInteger;
...
@@ -39,13 +39,13 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 AP-REP type.
* Implements the ASN.1 AP-REP type.
*
*
* <
xmp>
* <
pre>{@code
* AP-REP ::= [APPLICATION 15] SEQUENCE {
* AP-REP ::= [APPLICATION 15] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (15),
* msg-type [1] INTEGER (15),
* enc-part [2] EncryptedData -- EncAPRepPart
* enc-part [2] EncryptedData -- EncAPRepPart
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/APReq.java
浏览文件 @
de5fa31c
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 AP-REQ type.
* Implements the ASN.1 AP-REQ type.
*
*
* <
xmp>
* <
pre>{@code
* AP-REQ ::= [APPLICATION 14] SEQUENCE {
* AP-REQ ::= [APPLICATION 14] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (14),
* msg-type [1] INTEGER (14),
...
@@ -46,7 +46,7 @@ import java.math.BigInteger;
...
@@ -46,7 +46,7 @@ import java.math.BigInteger;
* ticket [3] Ticket,
* ticket [3] Ticket,
* authenticator [4] EncryptedData -- Authenticator
* authenticator [4] EncryptedData -- Authenticator
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/Authenticator.java
浏览文件 @
de5fa31c
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 Authenticator type.
* Implements the ASN.1 Authenticator type.
*
*
* <
xmp>
* <
pre>{@code
* Authenticator ::= [APPLICATION 2] SEQUENCE {
* Authenticator ::= [APPLICATION 2] SEQUENCE {
* authenticator-vno [0] INTEGER (5),
* authenticator-vno [0] INTEGER (5),
* crealm [1] Realm,
* crealm [1] Realm,
...
@@ -50,7 +50,7 @@ import java.math.BigInteger;
...
@@ -50,7 +50,7 @@ import java.math.BigInteger;
* seq-number [7] UInt32 OPTIONAL,
* seq-number [7] UInt32 OPTIONAL,
* authorization-data [8] AuthorizationData OPTIONAL
* authorization-data [8] AuthorizationData OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/EncAPRepPart.java
浏览文件 @
de5fa31c
...
@@ -39,14 +39,14 @@ import java.math.BigInteger;
...
@@ -39,14 +39,14 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 EncAPRepPart type.
* Implements the ASN.1 EncAPRepPart type.
*
*
* <
xmp>
* <
pre>{@code
* EncAPRepPart ::= [APPLICATION 27] SEQUENCE {
* EncAPRepPart ::= [APPLICATION 27] SEQUENCE {
* ctime [0] KerberosTime,
* ctime [0] KerberosTime,
* cusec [1] Microseconds,
* cusec [1] Microseconds,
* subkey [2] EncryptionKey OPTIONAL,
* subkey [2] EncryptionKey OPTIONAL,
* seq-number [3] UInt32 OPTIONAL
* seq-number [3] UInt32 OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/EncKDCRepPart.java
浏览文件 @
de5fa31c
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 EncKDCRepPart type.
* Implements the ASN.1 EncKDCRepPart type.
*
*
* <
xmp>
* <
pre>{@code
* EncKDCRepPart ::= SEQUENCE {
* EncKDCRepPart ::= SEQUENCE {
* key [0] EncryptionKey,
* key [0] EncryptionKey,
* last-req [1] LastReq,
* last-req [1] LastReq,
...
@@ -55,7 +55,7 @@ import java.math.BigInteger;
...
@@ -55,7 +55,7 @@ import java.math.BigInteger;
* caddr [11] HostAddresses OPTIONAL,
* caddr [11] HostAddresses OPTIONAL,
* encrypted-pa-data [12] SEQUENCE OF PA-DATA OPTIONAL
* encrypted-pa-data [12] SEQUENCE OF PA-DATA OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/EncKrbCredPart.java
浏览文件 @
de5fa31c
...
@@ -40,7 +40,7 @@ import java.math.BigInteger;
...
@@ -40,7 +40,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 EncKrbCredPart type.
* Implements the ASN.1 EncKrbCredPart type.
*
*
* <
xmp>
* <
pre>{@code
* EncKrbCredPart ::= [APPLICATION 29] SEQUENCE {
* EncKrbCredPart ::= [APPLICATION 29] SEQUENCE {
* ticket-info [0] SEQUENCE OF KrbCredInfo,
* ticket-info [0] SEQUENCE OF KrbCredInfo,
* nonce [1] UInt32 OPTIONAL,
* nonce [1] UInt32 OPTIONAL,
...
@@ -49,7 +49,7 @@ import java.math.BigInteger;
...
@@ -49,7 +49,7 @@ import java.math.BigInteger;
* s-address [4] HostAddress OPTIONAL,
* s-address [4] HostAddress OPTIONAL,
* r-address [5] HostAddress OPTIONAL
* r-address [5] HostAddress OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/EncKrbPrivPart.java
浏览文件 @
de5fa31c
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 EncKrbPrivPart type.
* Implements the ASN.1 EncKrbPrivPart type.
*
*
* <
xmp>
* <
pre>{@code
* EncKrbPrivPart ::= [APPLICATION 28] SEQUENCE {
* EncKrbPrivPart ::= [APPLICATION 28] SEQUENCE {
* user-data [0] OCTET STRING,
* user-data [0] OCTET STRING,
* timestamp [1] KerberosTime OPTIONAL,
* timestamp [1] KerberosTime OPTIONAL,
...
@@ -47,7 +47,7 @@ import java.math.BigInteger;
...
@@ -47,7 +47,7 @@ import java.math.BigInteger;
* s-address [4] HostAddress -- sender's addr --,
* s-address [4] HostAddress -- sender's addr --,
* r-address [5] HostAddress OPTIONAL -- recip's addr
* r-address [5] HostAddress OPTIONAL -- recip's addr
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/EncTicketPart.java
浏览文件 @
de5fa31c
...
@@ -39,7 +39,7 @@ import java.io.*;
...
@@ -39,7 +39,7 @@ import java.io.*;
/**
/**
* Implements the ASN.1 EncTicketPart type.
* Implements the ASN.1 EncTicketPart type.
*
*
* <
xmp>
* <
pre>{@code
* EncTicketPart ::= [APPLICATION 3] SEQUENCE {
* EncTicketPart ::= [APPLICATION 3] SEQUENCE {
* flags [0] TicketFlags,
* flags [0] TicketFlags,
* key [1] EncryptionKey,
* key [1] EncryptionKey,
...
@@ -53,7 +53,7 @@ import java.io.*;
...
@@ -53,7 +53,7 @@ import java.io.*;
* caddr [9] HostAddresses OPTIONAL,
* caddr [9] HostAddresses OPTIONAL,
* authorization-data [10] AuthorizationData OPTIONAL
* authorization-data [10] AuthorizationData OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/HostAddress.java
浏览文件 @
de5fa31c
...
@@ -44,12 +44,12 @@ import java.util.Arrays;
...
@@ -44,12 +44,12 @@ import java.util.Arrays;
/**
/**
* Implements the ASN.1 HostAddress type.
* Implements the ASN.1 HostAddress type.
*
*
* <
xmp>
* <
pre>{@code
* HostAddress ::= SEQUENCE {
* HostAddress ::= SEQUENCE {
* addr-type [0] Int32,
* addr-type [0] Int32,
* address [1] OCTET STRING
* address [1] OCTET STRING
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
@@ -132,7 +132,7 @@ public class HostAddress implements Cloneable {
...
@@ -132,7 +132,7 @@ 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 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
{
...
...
src/share/classes/sun/security/krb5/internal/HostAddresses.java
浏览文件 @
de5fa31c
...
@@ -45,7 +45,7 @@ import sun.security.krb5.internal.ccache.CCacheOutputStream;
...
@@ -45,7 +45,7 @@ import sun.security.krb5.internal.ccache.CCacheOutputStream;
/**
/**
* Implements the ASN.1 HostAddresses type.
* Implements the ASN.1 HostAddresses type.
*
*
* <
xmp>
* <
pre>{@code
* HostAddresses -- NOTE: subtly different from rfc1510,
* HostAddresses -- NOTE: subtly different from rfc1510,
* -- but has a value mapping and encodes the same
* -- but has a value mapping and encodes the same
* ::= SEQUENCE OF HostAddress
* ::= SEQUENCE OF HostAddress
...
@@ -54,7 +54,7 @@ import sun.security.krb5.internal.ccache.CCacheOutputStream;
...
@@ -54,7 +54,7 @@ import sun.security.krb5.internal.ccache.CCacheOutputStream;
* addr-type [0] Int32,
* addr-type [0] Int32,
* address [1] OCTET STRING
* address [1] OCTET STRING
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KDCOptions.java
浏览文件 @
de5fa31c
...
@@ -40,7 +40,7 @@ import java.io.IOException;
...
@@ -40,7 +40,7 @@ import java.io.IOException;
/**
/**
* Implements the ASN.1 KDCOptions type.
* Implements the ASN.1 KDCOptions type.
*
*
* <
xmp>
* <
pre>{@code
* KDCOptions ::= KerberosFlags
* KDCOptions ::= KerberosFlags
* -- reserved(0),
* -- reserved(0),
* -- forwardable(1),
* -- forwardable(1),
...
@@ -69,7 +69,7 @@ import java.io.IOException;
...
@@ -69,7 +69,7 @@ import java.io.IOException;
* -- minimum number of bits shall be sent,
* -- minimum number of bits shall be sent,
* -- but no fewer than 32
* -- but no fewer than 32
*
*
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
@@ -115,7 +115,7 @@ import java.io.IOException;
...
@@ -115,7 +115,7 @@ import java.io.IOException;
* in the addresses field of the request.
* in the addresses field of the request.
* <li>FORWARDED, PROXY, ENC_TKT_IN_SKEY, RENEW, VALIDATE are used only in
* <li>FORWARDED, PROXY, ENC_TKT_IN_SKEY, RENEW, VALIDATE are used only in
* subsequent requests.
* subsequent requests.
* </ol>
<p>
* </ol>
*/
*/
public
class
KDCOptions
extends
KerberosFlags
{
public
class
KDCOptions
extends
KerberosFlags
{
...
...
src/share/classes/sun/security/krb5/internal/KDCRep.java
浏览文件 @
de5fa31c
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
...
@@ -38,7 +38,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KDC-REP type.
* Implements the ASN.1 KDC-REP type.
*
*
* <
xmp>
* <
pre>{@code
* KDC-REP ::= SEQUENCE {
* KDC-REP ::= SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (11 -- AS -- | 13 -- TGS --),
* msg-type [1] INTEGER (11 -- AS -- | 13 -- TGS --),
...
@@ -51,7 +51,7 @@ import java.math.BigInteger;
...
@@ -51,7 +51,7 @@ import java.math.BigInteger;
* -- EncASRepPart or EncTGSRepPart,
* -- EncASRepPart or EncTGSRepPart,
* -- as appropriate
* -- as appropriate
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KDCReq.java
浏览文件 @
de5fa31c
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KRB_KDC_REQ type.
* Implements the ASN.1 KRB_KDC_REQ type.
*
*
* <
xmp>
* <
pre>{@code
* KDC-REQ ::= SEQUENCE {
* KDC-REQ ::= SEQUENCE {
* -- NOTE: first tag is [1], not [0]
* -- NOTE: first tag is [1], not [0]
* pvno [1] INTEGER (5) ,
* pvno [1] INTEGER (5) ,
...
@@ -48,7 +48,7 @@ import java.math.BigInteger;
...
@@ -48,7 +48,7 @@ import java.math.BigInteger;
* -- NOTE: not empty --,
* -- NOTE: not empty --,
* req-body [4] KDC-REQ-BODY
* req-body [4] KDC-REQ-BODY
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
@@ -95,7 +95,7 @@ public class KDCReq {
...
@@ -95,7 +95,7 @@ public class KDCReq {
* @param req_type a encoded asn1 type value.
* @param req_type a encoded asn1 type 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.
* @except
oi
n KrbErrException
* @except
io
n KrbErrException
*/
*/
public
KDCReq
(
DerValue
der
,
int
req_type
)
throws
Asn1Exception
,
public
KDCReq
(
DerValue
der
,
int
req_type
)
throws
Asn1Exception
,
IOException
,
KrbException
{
IOException
,
KrbException
{
...
...
src/share/classes/sun/security/krb5/internal/KDCReqBody.java
浏览文件 @
de5fa31c
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KDC-REQ-BODY type.
* Implements the ASN.1 KDC-REQ-BODY type.
*
*
* <
xmp>
* <
pre>{@code
* KDC-REQ-BODY ::= SEQUENCE {
* KDC-REQ-BODY ::= SEQUENCE {
* kdc-options [0] KDCOptions,
* kdc-options [0] KDCOptions,
* cname [1] PrincipalName OPTIONAL
* cname [1] PrincipalName OPTIONAL
...
@@ -60,7 +60,7 @@ import java.math.BigInteger;
...
@@ -60,7 +60,7 @@ import java.math.BigInteger;
* additional-tickets [11] SEQUENCE OF Ticket OPTIONAL
* additional-tickets [11] SEQUENCE OF Ticket OPTIONAL
* -- NOTE: not empty
* -- NOTE: not empty
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KRBCred.java
浏览文件 @
de5fa31c
...
@@ -41,14 +41,14 @@ import java.math.BigInteger;
...
@@ -41,14 +41,14 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 Authenticator type.
* Implements the ASN.1 Authenticator type.
*
*
* <
xmp>
* <
pre>{@code
* KRB-CRED ::= [APPLICATION 22] SEQUENCE {
* KRB-CRED ::= [APPLICATION 22] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (22),
* msg-type [1] INTEGER (22),
* tickets [2] SEQUENCE OF Ticket,
* tickets [2] SEQUENCE OF Ticket,
* enc-part [3] EncryptedData -- EncKrbCredPart
* enc-part [3] EncryptedData -- EncKrbCredPart
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KRBError.java
浏览文件 @
de5fa31c
...
@@ -48,7 +48,7 @@ import sun.security.krb5.internal.util.KerberosString;
...
@@ -48,7 +48,7 @@ import sun.security.krb5.internal.util.KerberosString;
/**
/**
* Implements the ASN.1 KRBError type.
* Implements the ASN.1 KRBError type.
*
*
* <
xmp>
* <
pre>{@code
* KRB-ERROR ::= [APPLICATION 30] SEQUENCE {
* KRB-ERROR ::= [APPLICATION 30] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (30),
* msg-type [1] INTEGER (30),
...
@@ -71,7 +71,7 @@ import sun.security.krb5.internal.util.KerberosString;
...
@@ -71,7 +71,7 @@ import sun.security.krb5.internal.util.KerberosString;
* data-type [0] Int32,
* data-type [0] Int32,
* data-value [1] OCTET STRING OPTIONAL
* data-value [1] OCTET STRING OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KRBPriv.java
浏览文件 @
de5fa31c
...
@@ -39,14 +39,14 @@ import java.math.BigInteger;
...
@@ -39,14 +39,14 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KRB-PRIV type.
* Implements the ASN.1 KRB-PRIV type.
*
*
* <
xmp>
* <
pre>{@code
* KRB-PRIV ::= [APPLICATION 21] SEQUENCE {
* KRB-PRIV ::= [APPLICATION 21] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (21),
* msg-type [1] INTEGER (21),
* -- NOTE: there is no [2] tag
* -- NOTE: there is no [2] tag
* enc-part [3] EncryptedData -- EncKrbPrivPart
* enc-part [3] EncryptedData -- EncKrbPrivPart
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KRBSafe.java
浏览文件 @
de5fa31c
...
@@ -40,14 +40,14 @@ import java.math.BigInteger;
...
@@ -40,14 +40,14 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KRBSafe type.
* Implements the ASN.1 KRBSafe type.
*
*
* <
xmp>
* <
pre>{@code
* KRB-SAFE ::= [APPLICATION 20] SEQUENCE {
* KRB-SAFE ::= [APPLICATION 20] SEQUENCE {
* pvno [0] INTEGER (5),
* pvno [0] INTEGER (5),
* msg-type [1] INTEGER (20),
* msg-type [1] INTEGER (20),
* safe-body [2] KRB-SAFE-BODY,
* safe-body [2] KRB-SAFE-BODY,
* cksum [3] Checksum
* cksum [3] Checksum
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KRBSafeBody.java
浏览文件 @
de5fa31c
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
...
@@ -39,7 +39,7 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 KRBSafeBody type.
* Implements the ASN.1 KRBSafeBody type.
*
*
* <
xmp>
* <
pre>{@code
* KRB-SAFE-BODY ::= SEQUENCE {
* KRB-SAFE-BODY ::= SEQUENCE {
* user-data [0] OCTET STRING,
* user-data [0] OCTET STRING,
* timestamp [1] KerberosTime OPTIONAL,
* timestamp [1] KerberosTime OPTIONAL,
...
@@ -48,7 +48,7 @@ import java.math.BigInteger;
...
@@ -48,7 +48,7 @@ import java.math.BigInteger;
* s-address [4] HostAddress,
* s-address [4] HostAddress,
* r-address [5] HostAddress OPTIONAL
* r-address [5] HostAddress OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/KerberosTime.java
浏览文件 @
de5fa31c
...
@@ -46,9 +46,7 @@ import java.util.TimeZone;
...
@@ -46,9 +46,7 @@ import java.util.TimeZone;
/**
/**
* Implements the ASN.1 KerberosTime type. This is an immutable class.
* Implements the ASN.1 KerberosTime type. This is an immutable class.
*
*
* <xmp>
* {@code KerberosTime ::= GeneralizedTime} -- with no fractional seconds
* KerberosTime ::= GeneralizedTime -- with no fractional seconds
* </xmp>
*
*
* The timestamps used in Kerberos are encoded as GeneralizedTimes. A
* The timestamps used in Kerberos are encoded as GeneralizedTimes. A
* KerberosTime value shall not include any fractional portions of the
* KerberosTime value shall not include any fractional portions of the
...
...
src/share/classes/sun/security/krb5/internal/KrbCredInfo.java
浏览文件 @
de5fa31c
...
@@ -38,7 +38,7 @@ import java.io.IOException;
...
@@ -38,7 +38,7 @@ import java.io.IOException;
/**
/**
* Implements the ASN.1 KrbCredInfo type.
* Implements the ASN.1 KrbCredInfo type.
*
*
* <
xmp>
* <
pre>{@code
* KrbCredInfo ::= SEQUENCE {
* KrbCredInfo ::= SEQUENCE {
* key [0] EncryptionKey,
* key [0] EncryptionKey,
* prealm [1] Realm OPTIONAL,
* prealm [1] Realm OPTIONAL,
...
@@ -52,7 +52,7 @@ import java.io.IOException;
...
@@ -52,7 +52,7 @@ import java.io.IOException;
* sname [9] PrincipalName OPTIONAL,
* sname [9] PrincipalName OPTIONAL,
* caddr [10] HostAddresses OPTIONAL
* caddr [10] HostAddresses OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/LastReq.java
浏览文件 @
de5fa31c
...
@@ -38,12 +38,12 @@ import java.io.IOException;
...
@@ -38,12 +38,12 @@ import java.io.IOException;
/**
/**
* Implements the ASN.1 LastReq type.
* Implements the ASN.1 LastReq type.
*
*
* <
xmp>
* <
pre>{@code
* LastReq ::= SEQUENCE OF SEQUENCE {
* LastReq ::= SEQUENCE OF SEQUENCE {
* lr-type [0] Int32,
* lr-type [0] Int32,
* lr-value [1] KerberosTime
* lr-value [1] KerberosTime
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/LoginOptions.java
浏览文件 @
de5fa31c
...
@@ -36,7 +36,7 @@ import java.io.IOException;
...
@@ -36,7 +36,7 @@ import java.io.IOException;
/**
/**
* Implements the ASN.1 KDCOptions type.
* Implements the ASN.1 KDCOptions type.
*
*
* <
xmp>
* <
pre>{@code
* KDCOptions ::= KerberosFlags
* KDCOptions ::= KerberosFlags
* -- reserved(0),
* -- reserved(0),
* -- forwardable(1),
* -- forwardable(1),
...
@@ -64,7 +64,7 @@ import java.io.IOException;
...
@@ -64,7 +64,7 @@ import java.io.IOException;
* KerberosFlags ::= BIT STRING (SIZE (32..MAX))
* KerberosFlags ::= BIT STRING (SIZE (32..MAX))
* -- minimum number of bits shall be sent,
* -- minimum number of bits shall be sent,
* -- but no fewer than 32
* -- but no fewer than 32
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/MethodData.java
浏览文件 @
de5fa31c
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 EncKrbPrivPart type.
* Implements the ASN.1 EncKrbPrivPart type.
*
*
* <
xmp>
* <
pre>{@code
* METHOD-DATA ::= SEQUENCE {
* METHOD-DATA ::= SEQUENCE {
* method-type[0] INTEGER,
* method-type[0] INTEGER,
* method-data[1] OCTET STRING OPTIONAL
* method-data[1] OCTET STRING OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*/
*/
public
class
MethodData
{
public
class
MethodData
{
private
int
methodType
;
private
int
methodType
;
...
...
src/share/classes/sun/security/krb5/internal/PAData.java
浏览文件 @
de5fa31c
...
@@ -43,13 +43,13 @@ import sun.security.krb5.internal.util.KerberosString;
...
@@ -43,13 +43,13 @@ import sun.security.krb5.internal.util.KerberosString;
/**
/**
* Implements the ASN.1 PA-DATA type.
* Implements the ASN.1 PA-DATA type.
*
*
* <
xmp>
* <
pre>{@code
* PA-DATA ::= SEQUENCE {
* PA-DATA ::= SEQUENCE {
* -- NOTE: first tag is [1], not [0]
* -- NOTE: first tag is [1], not [0]
* padata-type [1] Int32,
* padata-type [1] Int32,
* padata-value [2] OCTET STRING -- might be encoded AP-REQ
* padata-value [2] OCTET STRING -- might be encoded AP-REQ
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
@@ -179,11 +179,14 @@ public class PAData {
...
@@ -179,11 +179,14 @@ public class PAData {
/**
/**
* Gets the preferred etype from the PAData array.
* Gets the preferred etype from the PAData array.
* 1. ETYPE-INFO2-ENTRY with unknown s2kparams ignored
* <ol>
* 2. ETYPE-INFO2 preferred to ETYPE-INFO
* <li>ETYPE-INFO2-ENTRY with unknown s2kparams ignored</li>
* 3. multiple entries for same etype in one PA-DATA, use the first one.
* <li>ETYPE-INFO2 preferred to ETYPE-INFO</li>
* 4. Multiple PA-DATA with same type, choose the last one
* <li>Multiple entries for same etype in one PA-DATA, use the first one.</li>
* <li>Multiple PA-DATA with same type, choose the last one.</li>
* </ol>
* (This is useful when PA-DATAs from KRB-ERROR and AS-REP are combined).
* (This is useful when PA-DATAs from KRB-ERROR and AS-REP are combined).
*
* @return the etype, or defaultEType if not enough info
* @return the etype, or defaultEType if not enough info
* @throws Asn1Exception|IOException if there is an encoding error
* @throws Asn1Exception|IOException if there is an encoding error
*/
*/
...
...
src/share/classes/sun/security/krb5/internal/PAEncTSEnc.java
浏览文件 @
de5fa31c
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 PAEncTSEnc type.
* Implements the ASN.1 PAEncTSEnc type.
*
*
* <
xmp>
* <
pre>{@code
* PA-ENC-TS-ENC ::= SEQUENCE {
* PA-ENC-TS-ENC ::= SEQUENCE {
* patimestamp [0] KerberosTime -- client's time --,
* patimestamp [0] KerberosTime -- client's time --,
* pausec [1] Microseconds OPTIONAL
* pausec [1] Microseconds OPTIONAL
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/PAForUserEnc.java
浏览文件 @
de5fa31c
...
@@ -36,7 +36,7 @@ import sun.security.util.DerValue;
...
@@ -36,7 +36,7 @@ import sun.security.util.DerValue;
/**
/**
* Implements the ASN.1 PA-FOR-USER type.
* Implements the ASN.1 PA-FOR-USER type.
*
*
* <
xmp>
* <
pre>{@code
* padata-type ::= PA-FOR-USER
* padata-type ::= PA-FOR-USER
* -- value 129
* -- value 129
* padata-value ::= EncryptedData
* padata-value ::= EncryptedData
...
@@ -47,7 +47,7 @@ import sun.security.util.DerValue;
...
@@ -47,7 +47,7 @@ import sun.security.util.DerValue;
* cksum[2] Checksum,
* cksum[2] Checksum,
* auth-package[3] KerberosString
* auth-package[3] KerberosString
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects MS-SFU.
* This definition reflects MS-SFU.
...
...
src/share/classes/sun/security/krb5/internal/Ticket.java
浏览文件 @
de5fa31c
...
@@ -42,14 +42,14 @@ import java.math.BigInteger;
...
@@ -42,14 +42,14 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 Ticket type.
* Implements the ASN.1 Ticket type.
*
*
* <
xmp>
* <
pre>{@code
* Ticket ::= [APPLICATION 1] SEQUENCE {
* Ticket ::= [APPLICATION 1] SEQUENCE {
* tkt-vno [0] INTEGER (5),
* tkt-vno [0] INTEGER (5),
* realm [1] Realm,
* realm [1] Realm,
* sname [2] PrincipalName,
* sname [2] PrincipalName,
* enc-part [3] EncryptedData -- EncTicketPart
* enc-part [3] EncryptedData -- EncTicketPart
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/TransitedEncoding.java
浏览文件 @
de5fa31c
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
...
@@ -38,12 +38,12 @@ import java.math.BigInteger;
/**
/**
* Implements the ASN.1 TransitedEncoding type.
* Implements the ASN.1 TransitedEncoding type.
*
*
* <
xmp>
* <
pre>{@code
* TransitedEncoding ::= SEQUENCE {
* TransitedEncoding ::= SEQUENCE {
* tr-type [0] Int32 -- must be registered --,
* tr-type [0] Int32 -- must be registered --,
* contents [1] OCTET STRING
* contents [1] OCTET STRING
* }
* }
*
</xmp
>
*
}</pre
>
*
*
* <p>
* <p>
* This definition reflects the Network Working Group RFC 4120
* This definition reflects the Network Working Group RFC 4120
...
...
src/share/classes/sun/security/krb5/internal/crypto/Des.java
浏览文件 @
de5fa31c
...
@@ -226,7 +226,7 @@ public final class Des {
...
@@ -226,7 +226,7 @@ public final class Des {
/**
/**
* Generates DES key from the password.
* Generates DES key from the password.
* @param passw
ord
a char[] used to create the key.
* @param passw
dChars
a char[] used to create the key.
* @return DES key.
* @return DES key.
*
*
* @modified by Yanni Zhang, Dec 6, 99
* @modified by Yanni Zhang, Dec 6, 99
...
...
src/share/classes/sun/security/krb5/internal/crypto/DesMacCksumType.java
浏览文件 @
de5fa31c
...
@@ -121,7 +121,7 @@ public class DesMacCksumType extends CksumType {
...
@@ -121,7 +121,7 @@ public class DesMacCksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*
*
* @modified by Yanni Zhang, 12/08/99.
* @modified by Yanni Zhang, 12/08/99.
...
...
src/share/classes/sun/security/krb5/internal/crypto/HmacMd5ArcFourCksumType.java
浏览文件 @
de5fa31c
...
@@ -89,7 +89,7 @@ public class HmacMd5ArcFourCksumType extends CksumType {
...
@@ -89,7 +89,7 @@ public class HmacMd5ArcFourCksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*/
*/
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
...
...
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Aes128CksumType.java
浏览文件 @
de5fa31c
...
@@ -89,7 +89,7 @@ public class HmacSha1Aes128CksumType extends CksumType {
...
@@ -89,7 +89,7 @@ public class HmacSha1Aes128CksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*/
*/
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
...
...
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Aes256CksumType.java
浏览文件 @
de5fa31c
...
@@ -89,7 +89,7 @@ public class HmacSha1Aes256CksumType extends CksumType {
...
@@ -89,7 +89,7 @@ public class HmacSha1Aes256CksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*/
*/
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
...
...
src/share/classes/sun/security/krb5/internal/crypto/HmacSha1Des3KdCksumType.java
浏览文件 @
de5fa31c
...
@@ -83,7 +83,7 @@ public class HmacSha1Des3KdCksumType extends CksumType {
...
@@ -83,7 +83,7 @@ public class HmacSha1Des3KdCksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*/
*/
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
public
boolean
verifyChecksum
(
byte
[]
data
,
int
size
,
...
...
src/share/classes/sun/security/krb5/internal/crypto/RsaMd5DesCksumType.java
浏览文件 @
de5fa31c
...
@@ -116,7 +116,7 @@ public final class RsaMd5DesCksumType extends CksumType {
...
@@ -116,7 +116,7 @@ public final class RsaMd5DesCksumType extends CksumType {
* @param data the data.
* @param data the data.
* @param size the length of data.
* @param size the length of data.
* @param key the key used to encrypt the checksum.
* @param key the key used to encrypt the checksum.
* @param checksum
* @param checksum
the checksum.
* @return true if verification is successful.
* @return true if verification is successful.
*
*
* @modified by Yanni Zhang, 12/08/99.
* @modified by Yanni Zhang, 12/08/99.
...
...
src/share/classes/sun/security/krb5/internal/ktab/KeyTab.java
浏览文件 @
de5fa31c
...
@@ -513,7 +513,7 @@ public class KeyTab implements KeyTabConstants {
...
@@ -513,7 +513,7 @@ public class KeyTab implements KeyTabConstants {
/**
/**
* Creates key table file version.
* Creates key table file version.
* @param file the key table file.
* @param file the key table file.
* @exception IOException
.
* @exception IOException
*/
*/
public
synchronized
void
createVersion
(
File
file
)
throws
IOException
{
public
synchronized
void
createVersion
(
File
file
)
throws
IOException
{
try
(
KeyTabOutputStream
kos
=
try
(
KeyTabOutputStream
kos
=
...
...
src/share/classes/sun/security/krb5/internal/rcache/AuthList.java
浏览文件 @
de5fa31c
...
@@ -45,7 +45,7 @@ import sun.security.krb5.internal.KrbApErrException;
...
@@ -45,7 +45,7 @@ import sun.security.krb5.internal.KrbApErrException;
* self-cleanup of expired items in the cache.
* self-cleanup of expired items in the cache.
*
*
* AuthTimeWithHash objects inside a cache are always sorted from big (new) to
* AuthTimeWithHash objects inside a cache are always sorted from big (new) to
* small (old) as determined by {@
see
AuthTimeWithHash#compareTo}. In the most
* small (old) as determined by {@
link
AuthTimeWithHash#compareTo}. In the most
* common case a newcomer should be newer than the first element.
* common case a newcomer should be newer than the first element.
*
*
* @author Yanni Zhang
* @author Yanni Zhang
...
...
src/share/classes/sun/security/pkcs11/wrapper/CK_CREATEMUTEX.java
浏览文件 @
de5fa31c
...
@@ -50,17 +50,16 @@ package sun.security.pkcs11.wrapper;
...
@@ -50,17 +50,16 @@ package sun.security.pkcs11.wrapper;
/**
/**
* interface CK_CREATEMUTEX.
<p>
* interface CK_CREATEMUTEX.
*
*
* @author Karl Scheibelhofer
<Karl.Scheibelhofer@iaik.at>
* @author Karl Scheibelhofer
<Karl.Scheibelhofer@iaik.at>
* @author Martin Schlaeffer
<schlaeff@sbox.tugraz.at>
* @author Martin Schlaeffer
<schlaeff@sbox.tugraz.at>
*/
*/
public
interface
CK_CREATEMUTEX
{
public
interface
CK_CREATEMUTEX
{
/**
/**
* Method CK_CREATEMUTEX
* Method CK_CREATEMUTEX
*
*
* @param ppMutex
* @return The mutex (lock) object.
* @return The mutex (lock) object.
* @exception PKCS11Exception
* @exception PKCS11Exception
*/
*/
...
...
src/windows/classes/sun/security/krb5/internal/tools/Kinit.java
浏览文件 @
de5fa31c
...
@@ -59,26 +59,25 @@ public class Kinit {
...
@@ -59,26 +59,25 @@ public class Kinit {
* We currently support only file-based credentials cache to
* We currently support only file-based credentials cache to
* store the tickets obtained from the KDC.
* store the tickets obtained from the KDC.
* By default, for all Unix platforms a cache file named
* By default, for all Unix platforms a cache file named
*
/tmp/krb5cc_<uid> will be generated. The <uid>
is the
*
{@code /tmp/krb5cc_<uid>} will be generated. The {@code <uid>}
is the
* numeric user identifier.
* numeric user identifier.
* For all other platforms, a cache file named
* For all other platforms, a cache file named
*
<USER_HOME>/krb5cc_<USER_NAME>
would be generated.
*
{@code <USER_HOME>/krb5cc_<USER_NAME>}
would be generated.
* <p>
* <p>
*
<USER_HOME> is obtained from <code>java.lang.System</code>
*
{@code <USER_HOME>} is obtained from {@code java.lang.System}
* property <i>user.home</i>.
* property <i>user.home</i>.
*
<USER_NAME> is obtained from <code>java.lang.System</code>
*
{@code <USER_NAME>} is obtained from {@code java.lang.System}
* property <i>user.name</i>.
* property <i>user.name</i>.
* If
<USER_HOME>
is null the cache file would be stored in
* If
{@code <USER_HOME>}
is null the cache file would be stored in
* the current directory that the program is running from.
* the current directory that the program is running from.
*
<USER_NAME>
is operating system's login username.
*
{@code <USER_NAME>}
is operating system's login username.
* It could be different from user's principal name.
* It could be different from user's principal name.
*</p>
* <p>
*<p>
* For instance, on Windows NT, it could be
* For instance, on Windows NT, it could be
*
c:\winnt\profiles\duke\krb5cc_duke
, in
*
{@code c:\winnt\profiles\duke\krb5cc_duke}
, in
* which duke is the
<USER_NAME>, and c:\winnt\profile\duke
is the
* which duke is the
{@code <USER_NAME>} and {@code c:\winnt\profile\duke}
is the
*
<USER_HOME>
.
*
{@code <USER_HOME>}
.
*<p>
*
<p>
* A single user could have multiple principal names,
* A single user could have multiple principal names,
* but the primary principal of the credentials cache could only be one,
* but the primary principal of the credentials cache could only be one,
* which means one cache file could only store tickets for one
* which means one cache file could only store tickets for one
...
@@ -88,10 +87,8 @@ public class Kinit {
...
@@ -88,10 +87,8 @@ public class Kinit {
* To avoid overwriting, you need to specify
* To avoid overwriting, you need to specify
* a different cache file name when you request a
* a different cache file name when you request a
* new ticket.
* new ticket.
*</p>
* <p>
*<p>
* You can specify the location of the cache file by using the -c option
* You can specify the location of the cache file by using the -c option
*
*/
*/
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/windows/classes/sun/security/krb5/internal/tools/Klist.java
浏览文件 @
de5fa31c
...
@@ -71,8 +71,10 @@ public class Klist {
...
@@ -71,8 +71,10 @@ public class Klist {
* <li><b>-n</b> do not reverse-resolve addresses
* <li><b>-n</b> do not reverse-resolve addresses
* </ul>
* </ul>
* available options for keytabs:
* available options for keytabs:
* <ul>
* <li><b>-t</b> shows keytab entry timestamps
* <li><b>-t</b> shows keytab entry timestamps
* <li><b>-K</b> shows keytab entry DES keys
* <li><b>-K</b> shows keytab entry DES keys
* </ul>
*/
*/
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
Klist
klist
=
new
Klist
();
Klist
klist
=
new
Klist
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录