# CertPath.CertPathRep

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

# CertPathRep

```
protected open class CertPathRep : Serializable
```

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

Alternate`CertPath`class for serialization.

## Summary

|                                                                                                                                                                                                               Protected constructors                                                                                                                                                                                                               ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CertPathRep](https://developer.android.com/reference/kotlin/java/security/cert/CertPath.CertPathRep#CertPathRep(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)!`)` Creates a`CertPathRep`with the specified type and encoded form of a certification path. |

|                                                                                                                        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/CertPath.CertPathRep#readResolve())`()` Returns a`CertPath`constructed from the type and data. |

## Protected constructors

### CertPathRep

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

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

Creates a`CertPathRep`with the specified type and encoded form of a certification path.

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

## 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!
```

Returns a`CertPath`constructed from the type and data.

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

|                               Exceptions                                ||
|---------------------------------|----------------------------------------|
| `java.io.ObjectStreamException` | if a`CertPath`could not be constructed |