Certificate class
Constructors
Properties
- certificatePath ↔ String?
-
getter/setter pair
- domain → String
-
no setter
- domains ↔ String?
-
getter/setter pair
- expiryDate ↔ DateTime?
-
getter/setter pair
- fqdn ↔ String
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostname → String?
-
no setter
- privateKeyPath ↔ String?
-
getter/setter pair
- production ↔ bool?
-
If production is true then this is a production certificate
If production is false then this is a staging/test certificate.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wildcard ↔ bool
-
If the fqdn starts with a '*' then its a wild card certificate.
getter/setter pair
Methods
-
delete(
) → void -
domainFromFqdn(
String fqdn) → String - returns the hostname component of an fqdn
-
hasExpired(
{DateTime? asAt}) → bool -
returns true if the cerificate has expired at the date/time given
by
asAt
. IfasAt
is null then 'now' is used. -
hostnameFromFqdn(
String? fqdn) → String? - returns the hostname component of an fqdn
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseCertificatePath(
String line) → void -
parseDomains(
String line) → void -
parseExpiryDate(
String line) → void -
parseName(
String line) → void -
parsePrivateKeyPath(
String line) → void -
revoke(
) → void -
toString(
) → String -
A string representation of this object.
override
-
wasIssuedFor(
{required String? hostname, required String domain, required bool wildcard, required bool production}) → bool -
Returns true if this certificate was issued for the given
hostname
,domain
and is or isn't awildcard
certificate. Returns true if this certificate was issued for the givenhostname
,domain
and is or isn't awildcard
certificate.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildFQDN(
String? hostname, String domain) → String -
find(
{required bool wildcard, required String domain, String? hostname, bool? production}) → Certificate? - Finds the matching certificate and returns it.
-
load(
) → List< Certificate> -
matches(
{required Certificate certificate, required bool wildcard, required String domain, String? hostname, bool? production}) → bool -
parse(
List< String> lines) → List<Certificate> - When certs exist we get