java.security.KeyRep Java Examples
The following examples show how to use
java.security.KeyRep.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DSAPublicKeyImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
@java.io.Serial protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #2
Source File: PKCS8Key.java From Bytecoder with Apache License 2.0 | 5 votes |
@java.io.Serial protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #3
Source File: ConstantPasswords.java From Android_Code_Arbiter with GNU Lesser General Public License v3.0 | 5 votes |
public void bad8a() throws Exception { new DESKeySpec(null); // should not be reported byte[] key = {1, 2, 3, 4, 5, 6, 7, 8}; DESKeySpec spec = new DESKeySpec(key); KeySpec spec2 = new DESedeKeySpec(key); KerberosKey kerberosKey = new KerberosKey(null, key, 0, 0); System.out.println(spec.getKey()[0] + kerberosKey.getKeyType()); new SecretKeySpec(key, "alg"); new SecretKeySpec(key, 0, 0, "alg"); new X509EncodedKeySpec(key); new PKCS8EncodedKeySpec(key); new KeyRep(null, "alg", "format", key); new KerberosTicket(null, null, null, key, 0, null, null, null, null, null, null); new DSAPublicKeyImpl(key); }
Example #4
Source File: RSAPublicKey.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #5
Source File: SM2PublicKeyImpl.java From julongchain with Apache License 2.0 | 4 votes |
protected Object writeReplace() throws ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, this.getAlgorithm(), this.getFormat(), this.getEncoded()); }
Example #6
Source File: RSAPublicKey.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #7
Source File: PKCS8Key.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #8
Source File: RSAPublicKey.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #9
Source File: PKCS8Key.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #10
Source File: DSAPublicKeyImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #11
Source File: PKCS8Key.java From hottub with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #12
Source File: DSAPublicKeyImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #13
Source File: PKCS8Key.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #14
Source File: DSAPublicKeyImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #15
Source File: PKCS8Key.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #16
Source File: RSAPublicKey.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #17
Source File: DSAPublicKeyImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #18
Source File: PKCS8Key.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #19
Source File: RSAPublicKey.java From hottub with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #20
Source File: PKCS8Key.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #21
Source File: DSAPublicKeyImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #22
Source File: PKCS8Key.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #23
Source File: PKCS8Key.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #24
Source File: CPublicKey.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #25
Source File: PKCS8Key.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PRIVATE, getAlgorithm(), getFormat(), getEncoded()); }
Example #26
Source File: DSAPublicKeyImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #27
Source File: DSAPublicKeyImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #28
Source File: CPublicKey.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #29
Source File: RSAPublicKey.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }
Example #30
Source File: DSAPublicKeyImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected Object writeReplace() throws java.io.ObjectStreamException { return new KeyRep(KeyRep.Type.PUBLIC, getAlgorithm(), getFormat(), getEncoded()); }