-
Notifications
You must be signed in to change notification settings - Fork 221
/
com.microsoft.aad.adal4j.AsymmetricKeyCredential.yml
164 lines (146 loc) · 8.37 KB
/
com.microsoft.aad.adal4j.AsymmetricKeyCredential.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
### YamlMime:JavaType
fields:
- field:
type: <xref href="final+int?alt=final+int&text=final+int" data-throw-if-not-resolved="False"/>
fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.MIN_KEYSIZE_IN_BITS
name: MIN_KEYSIZE_IN_BITS
nameWithType: AsymmetricKeyCredential.MIN_KEYSIZE_IN_BITS
syntax: public static final int MIN_KEYSIZE_IN_BITS= 2048
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.MIN_KEYSIZE_IN_BITS
inheritances:
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
methods:
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.create(final String clientId, final InputStream pkcs12Certificate, final String password)
name: create(final String clientId, final InputStream pkcs12Certificate, final String password)
nameWithType: AsymmetricKeyCredential.create(final String clientId, final InputStream pkcs12Certificate, final String password)
parameters:
- description: <p>Identifier of the client requesting the token. </p>
name: clientId
type: <xref href="final+String?alt=final+String&text=final+String" data-throw-if-not-resolved="False"/>
- description: <p>PKCS12 certificate stream containing public and private key. Caller is responsible for handling the input stream. </p>
name: pkcs12Certificate
type: <xref href="final+InputStream?alt=final+InputStream&text=final+InputStream" data-throw-if-not-resolved="False"/>
- description: <p>certificate password </p>
name: password
type: <xref href="final+String?alt=final+String&text=final+String" data-throw-if-not-resolved="False"/>
exceptions:
- type: <xref href="KeyStoreException?alt=KeyStoreException&text=KeyStoreException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="KeyStoreException"></xref>
</p>
- type: <xref href="NoSuchProviderException?alt=NoSuchProviderException&text=NoSuchProviderException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="NoSuchProviderException"></xref>
</p>
- type: <xref href="NoSuchAlgorithmException?alt=NoSuchAlgorithmException&text=NoSuchAlgorithmException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="NoSuchAlgorithmException"></xref>
</p>
- type: <xref href="CertificateException?alt=CertificateException&text=CertificateException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="CertificateException"></xref>
</p>
- type: <xref href="IOException?alt=IOException&text=IOException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="IOException"></xref>
</p>
- type: <xref href="UnrecoverableKeyException?alt=UnrecoverableKeyException&text=UnrecoverableKeyException" data-throw-if-not-resolved="False"/>
description: >-
<p>
<xref uid="" data-throw-if-not-resolved="false" data-raw-source="UnrecoverableKeyException"></xref>
</p>
returns:
description: <p>KeyCredential instance </p>
type: <xref href="com.microsoft.aad.adal4j.AsymmetricKeyCredential?alt=com.microsoft.aad.adal4j.AsymmetricKeyCredential&text=AsymmetricKeyCredential" data-throw-if-not-resolved="False"/>
summary: >-
<p>Static method to create KeyCredential instance.</p>
<p></p>
syntax: public static AsymmetricKeyCredential create(final String clientId, final InputStream pkcs12Certificate, final String password)
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.create(final String,final InputStream,final String)
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.create(final String clientId, final PrivateKey key, final X509Certificate publicCertificate)
name: create(final String clientId, final PrivateKey key, final X509Certificate publicCertificate)
nameWithType: AsymmetricKeyCredential.create(final String clientId, final PrivateKey key, final X509Certificate publicCertificate)
parameters:
- description: <p>Identifier of the client requesting the token. </p>
name: clientId
type: <xref href="final+String?alt=final+String&text=final+String" data-throw-if-not-resolved="False"/>
- description: <p>RSA private key to sign the assertion. </p>
name: key
type: <xref href="final+PrivateKey?alt=final+PrivateKey&text=final+PrivateKey" data-throw-if-not-resolved="False"/>
- description: <p>Public certificate used for thumb print. </p>
name: publicCertificate
type: <xref href="final+X509Certificate?alt=final+X509Certificate&text=final+X509Certificate" data-throw-if-not-resolved="False"/>
returns:
description: <p>KeyCredential instance </p>
type: <xref href="com.microsoft.aad.adal4j.AsymmetricKeyCredential?alt=com.microsoft.aad.adal4j.AsymmetricKeyCredential&text=AsymmetricKeyCredential" data-throw-if-not-resolved="False"/>
summary: >-
<p>Static method to create KeyCredential instance.</p>
<p></p>
syntax: public static AsymmetricKeyCredential create(final String clientId, final PrivateKey key, final X509Certificate publicCertificate)
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.create(final String,final PrivateKey,final X509Certificate)
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getClientId()
name: getClientId()
nameWithType: AsymmetricKeyCredential.getClientId()
returns:
description: <p>string value </p>
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
summary: >-
<p>Gets the identifier of the client requesting the token.</p>
<p></p>
syntax: public String getClientId()
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getClientId()
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getKey()
name: getKey()
nameWithType: AsymmetricKeyCredential.getKey()
returns:
description: <p>private key. </p>
type: <xref href="PrivateKey?alt=PrivateKey&text=PrivateKey" data-throw-if-not-resolved="False"/>
summary: >-
<p>Returns private key of the credential.</p>
<p></p>
syntax: public PrivateKey getKey()
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getKey()
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getPublicCertificate()
name: getPublicCertificate()
nameWithType: AsymmetricKeyCredential.getPublicCertificate()
exceptions:
- type: <xref href="CertificateEncodingException?alt=CertificateEncodingException&text=CertificateEncodingException" data-throw-if-not-resolved="False"/>
description: <p>if an encoding error occurs </p>
returns:
description: <p>base64 encoded string </p>
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
summary: >-
<p>Base64 encoded public certificate.</p>
<p></p>
syntax: public String getPublicCertificate()
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getPublicCertificate()
- fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getPublicCertificateHash()
name: getPublicCertificateHash()
nameWithType: AsymmetricKeyCredential.getPublicCertificateHash()
exceptions:
- type: <xref href="CertificateEncodingException?alt=CertificateEncodingException&text=CertificateEncodingException" data-throw-if-not-resolved="False"/>
description: <p>if an encoding error occurs </p>
- type: <xref href="NoSuchAlgorithmException?alt=NoSuchAlgorithmException&text=NoSuchAlgorithmException" data-throw-if-not-resolved="False"/>
description: <p>if requested algorithm is not available in the environment </p>
returns:
description: <p>base64 encoded string </p>
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
summary: >-
<p>Base64 encoded hash of the the public certificate.</p>
<p></p>
syntax: public String getPublicCertificateHash()
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential.getPublicCertificateHash()
nameWithType: AsymmetricKeyCredential
syntax: public class AsymmetricKeyCredential
type: class
uid: com.microsoft.aad.adal4j.AsymmetricKeyCredential
fullName: com.microsoft.aad.adal4j.AsymmetricKeyCredential
name: AsymmetricKeyCredential
package: com.microsoft.aad.adal4j
summary: <p>Credential type containing X509 public certificate and RSA private key. </p>
metadata: {}