# Certificate.CertificateRep

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CertificateRep

```
protected open class CertificateRep : Serializable
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                 ||
| ↳ | [java.security.cert.Certificate.CertificateRep](https://developer.android.com/reference/kotlin/java/security/cert/Certificate.CertificateRep#) |

Alternate Certificate class for serialization.

## Summary

|                                                                                                                                                                                                                           Protected constructors                                                                                                                                                                                                                           ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CertificateRep](https://developer.android.com/reference/kotlin/java/security/cert/Certificate.CertificateRep#CertificateRep(kotlin.String,%20kotlin.ByteArray))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`)` Construct the alternate Certificate class with the Certificate type and Certificate encoding bytes. |

|                                                                                                               Protected methods                                                                                                                ||
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)! | [readResolve](https://developer.android.com/reference/kotlin/java/security/cert/Certificate.CertificateRep#readResolve())`()` Resolve the Certificate Object. |

## Protected constructors

### CertificateRep

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
protected CertificateRep(
    type: String!, 
    data: ByteArray!)
```

Construct the alternate Certificate class with the Certificate type and Certificate encoding bytes.

|                                                              Parameters                                                              ||
|--------|------------------------------------------------------------------------------------------------------------------------------|
| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the standard name of the Certificate type. |
| `data` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!:the Certificate data.               |

## Protected methods

### readResolve

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
protected open fun readResolve(): Any!
```

Resolve the Certificate Object.

|                                                    Return                                                    ||
|-----------------------------------------------------------------------------|---------------------------------|
| [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)! | the resolved Certificate Object |

|                                Exceptions                                 ||
|---------------------------------|------------------------------------------|
| `java.io.ObjectStreamException` | if the Certificate could not be resolved |