@@ -10,10 +10,10 @@ use serde::Deserialize;
1010use serde:: Serialize ;
1111use serde_with:: DurationSeconds ;
1212use serde_with:: serde_as;
13+ use url:: Url ;
1314
1415use crypto:: EcdsaKey ;
1516use crypto:: server_keys:: KeyPair ;
16- use http_utils:: urls:: HttpsUri ;
1717use jwt:: JwtTyp ;
1818use jwt:: SignedJwt ;
1919use jwt:: UnverifiedJwt ;
@@ -32,7 +32,7 @@ pub static TOKEN_STATUS_LIST_JWT_TYP: &str = "statuslist+jwt";
3232pub struct StatusListToken ( UnverifiedJwt < StatusListClaims , HeaderWithX5c > ) ;
3333
3434impl StatusListToken {
35- pub fn builder ( sub : HttpsUri , status_list : PackedStatusList ) -> StatusListTokenBuilder {
35+ pub fn builder ( sub : Url , status_list : PackedStatusList ) -> StatusListTokenBuilder {
3636 StatusListTokenBuilder {
3737 exp : None ,
3838 sub,
@@ -44,7 +44,7 @@ impl StatusListToken {
4444
4545pub struct StatusListTokenBuilder {
4646 exp : Option < DateTime < Utc > > ,
47- sub : HttpsUri ,
47+ sub : Url ,
4848 ttl : Option < Duration > ,
4949 status_list : PackedStatusList ,
5050}
@@ -86,7 +86,7 @@ pub struct StatusListClaims {
8686
8787 /// The sub (subject) claim MUST specify the URI of the Status List Token. The value MUST be equal to that of the
8888 /// `uri` claim contained in the `status_list` claim of the Referenced Token
89- pub sub : HttpsUri ,
89+ pub sub : Url ,
9090
9191 /// If present, MUST specify the maximum amount of time, in seconds, that the Status List Token can be cached by a
9292 /// consumer before a fresh copy SHOULD be retrieved.
0 commit comments