public class JsonWebKey extends Object
| Constructor and Description |
|---|
JsonWebKey() |
| Modifier and Type | Method and Description |
|---|---|
static JsonWebKey |
fromRSA(KeyPair keyPair) |
byte[] |
getD() |
byte[] |
getDP() |
byte[] |
getDQ() |
byte[] |
getE() |
byte[] |
getk() |
String[] |
getKeyOps() |
String |
getKid() |
String |
getKty() |
byte[] |
getN() |
byte[] |
getP() |
byte[] |
getQ() |
byte[] |
getQI() |
byte[] |
getT() |
void |
setD(byte[] d) |
void |
setDP(byte[] dp) |
void |
setDQ(byte[] dq) |
void |
setE(byte[] e) |
void |
setK(byte[] k) |
void |
setKeyOps(String[] keyOps) |
void |
setKid(String kid) |
void |
setKty(String kty) |
void |
setN(byte[] n) |
void |
setP(byte[] p) |
void |
setQ(byte[] q) |
void |
setQI(byte[] qi) |
void |
setT(byte[] t) |
KeyPair |
toRSA() |
KeyPair |
toRSA(boolean includePrivateParameters) |
String |
toString() |
public String getKid()
public void setKid(String kid)
public String getKty()
public void setKty(String kty)
public String[] getKeyOps()
public void setKeyOps(String[] keyOps)
public byte[] getN()
public void setN(byte[] n)
public byte[] getE()
public void setE(byte[] e)
public byte[] getD()
public void setD(byte[] d)
public byte[] getDP()
public void setDP(byte[] dp)
public byte[] getDQ()
public void setDQ(byte[] dq)
public byte[] getQI()
public void setQI(byte[] qi)
public byte[] getP()
public void setP(byte[] p)
public byte[] getQ()
public void setQ(byte[] q)
public byte[] getk()
public void setK(byte[] k)
public byte[] getT()
public void setT(byte[] t)
public static JsonWebKey fromRSA(KeyPair keyPair)
public KeyPair toRSA()
public KeyPair toRSA(boolean includePrivateParameters)
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/