Package com.ngrok.services
Class SshCertificateAuthorities.CreateCallBuilder
java.lang.Object
com.ngrok.services.SshCertificateAuthorities.CreateCallBuilder
- Enclosing class:
- SshCertificateAuthorities
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.description
(String description) human-readable description of this SSH Certificate Authority.description
(Optional<String> description) human-readable description of this SSH Certificate Authority.ellipticCurve
(String ellipticCurve) the type of elliptic curve to use when creating an ECDSA keyellipticCurve
(Optional<String> ellipticCurve) the type of elliptic curve to use when creating an ECDSA keykeySize
(long keySize) the key size to use when creating an RSA key.the key size to use when creating an RSA key.arbitrary user-defined machine-readable data of this SSH Certificate Authority.arbitrary user-defined machine-readable data of this SSH Certificate Authority.privateKeyType
(String privateKeyType) the type of private key to generate.privateKeyType
(Optional<String> privateKeyType) the type of private key to generate.
-
Method Details
-
description
human-readable description of this SSH Certificate Authority. optional, max 255 bytes.- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
human-readable description of this SSH Certificate Authority. optional, max 255 bytes. -
metadata
arbitrary user-defined machine-readable data of this SSH Certificate Authority. optional, max 4096 bytes.- Parameters:
metadata
- the value of the metadata parameter as aString
- Returns:
- the call builder instance
-
metadata
arbitrary user-defined machine-readable data of this SSH Certificate Authority. optional, max 4096 bytes. -
privateKeyType
the type of private key to generate. one ofrsa
,ecdsa
,ed25519
- Parameters:
privateKeyType
- the value of the private_key_type parameter as aString
- Returns:
- the call builder instance
-
privateKeyType
the type of private key to generate. one ofrsa
,ecdsa
,ed25519
-
ellipticCurve
the type of elliptic curve to use when creating an ECDSA key- Parameters:
ellipticCurve
- the value of the elliptic_curve parameter as aString
- Returns:
- the call builder instance
-
ellipticCurve
the type of elliptic curve to use when creating an ECDSA key -
keySize
the key size to use when creating an RSA key. one of2048
or4096
- Parameters:
keySize
- the value of the key_size parameter as along
- Returns:
- the call builder instance
-
keySize
the key size to use when creating an RSA key. one of2048
or4096
- Parameters:
keySize
- the value of the key_size parameter as anOptional
oflong
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofSshCertificateAuthority
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
SshCertificateAuthority
- Throws:
InterruptedException
- if the thread was interrupted during the call
-