001/*******************************************************************************
002 * Copyright 2014 The MITRE Corporation
003 *   and the MIT Kerberos and Internet Trust Consortium
004 * 
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 * 
009 *   http://www.apache.org/licenses/LICENSE-2.0
010 * 
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 ******************************************************************************/
017/**
018 * 
019 */
020package org.mitre.oauth2.model;
021
022import java.util.Date;
023import java.util.Map;
024import java.util.Set;
025
026import org.mitre.jose.JWEAlgorithmEmbed;
027import org.mitre.jose.JWEEncryptionMethodEmbed;
028import org.mitre.jose.JWSAlgorithmEmbed;
029import org.mitre.oauth2.model.ClientDetailsEntity.AppType;
030import org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod;
031import org.mitre.oauth2.model.ClientDetailsEntity.SubjectType;
032import org.springframework.security.core.GrantedAuthority;
033
034import com.nimbusds.jose.EncryptionMethod;
035import com.nimbusds.jose.JWEAlgorithm;
036import com.nimbusds.jose.JWSAlgorithm;
037
038/**
039 * @author jricher
040 *
041 */
042public class RegisteredClient {
043
044        // these fields are needed in addition to the ones in ClientDetailsEntity
045        private String registrationAccessToken;
046        private String registrationClientUri;
047        private Date clientSecretExpiresAt;
048        private Date clientIdIssuedAt;
049        private ClientDetailsEntity client;
050
051        /**
052         * 
053         */
054        public RegisteredClient() {
055                this.client = new ClientDetailsEntity();
056        }
057
058        /**
059         * @param client
060         */
061        public RegisteredClient(ClientDetailsEntity client) {
062                this.client = client;
063        }
064
065        /**
066         * @param client
067         * @param registrationAccessToken
068         * @param registrationClientUri
069         */
070        public RegisteredClient(ClientDetailsEntity client, String registrationAccessToken, String registrationClientUri) {
071                this.client = client;
072                this.registrationAccessToken = registrationAccessToken;
073                this.registrationClientUri = registrationClientUri;
074        }
075
076        /**
077         * @return the client
078         */
079        public ClientDetailsEntity getClient() {
080                return client;
081        }
082        /**
083         * @param client the client to set
084         */
085        public void setClient(ClientDetailsEntity client) {
086                this.client = client;
087        }
088        /**
089         * @return
090         * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientDescription()
091         */
092        public String getClientDescription() {
093                return client.getClientDescription();
094        }
095        /**
096         * @param clientDescription
097         * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientDescription(java.lang.String)
098         */
099        public void setClientDescription(String clientDescription) {
100                client.setClientDescription(clientDescription);
101        }
102        /**
103         * @return
104         * @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowRefresh()
105         */
106        public boolean isAllowRefresh() {
107                return client.isAllowRefresh();
108        }
109        /**
110         * @return
111         * @see org.mitre.oauth2.model.ClientDetailsEntity#isReuseRefreshToken()
112         */
113        public boolean isReuseRefreshToken() {
114                return client.isReuseRefreshToken();
115        }
116        /**
117         * @param reuseRefreshToken
118         * @see org.mitre.oauth2.model.ClientDetailsEntity#setReuseRefreshToken(boolean)
119         */
120        public void setReuseRefreshToken(boolean reuseRefreshToken) {
121                client.setReuseRefreshToken(reuseRefreshToken);
122        }
123        /**
124         * @return
125         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenValiditySeconds()
126         */
127        public Integer getIdTokenValiditySeconds() {
128                return client.getIdTokenValiditySeconds();
129        }
130        /**
131         * @param idTokenValiditySeconds
132         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenValiditySeconds(java.lang.Integer)
133         */
134        public void setIdTokenValiditySeconds(Integer idTokenValiditySeconds) {
135                client.setIdTokenValiditySeconds(idTokenValiditySeconds);
136        }
137        /**
138         * @return
139         * @see org.mitre.oauth2.model.ClientDetailsEntity#isDynamicallyRegistered()
140         */
141        public boolean isDynamicallyRegistered() {
142                return client.isDynamicallyRegistered();
143        }
144        /**
145         * @param dynamicallyRegistered
146         * @see org.mitre.oauth2.model.ClientDetailsEntity#setDynamicallyRegistered(boolean)
147         */
148        public void setDynamicallyRegistered(boolean dynamicallyRegistered) {
149                client.setDynamicallyRegistered(dynamicallyRegistered);
150        }
151        /**
152         * @return
153         * @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowIntrospection()
154         */
155        public boolean isAllowIntrospection() {
156                return client.isAllowIntrospection();
157        }
158        /**
159         * @param allowIntrospection
160         * @see org.mitre.oauth2.model.ClientDetailsEntity#setAllowIntrospection(boolean)
161         */
162        public void setAllowIntrospection(boolean allowIntrospection) {
163                client.setAllowIntrospection(allowIntrospection);
164        }
165        /**
166         * @return
167         * @see org.mitre.oauth2.model.ClientDetailsEntity#isSecretRequired()
168         */
169        public boolean isSecretRequired() {
170                return client.isSecretRequired();
171        }
172        /**
173         * @return
174         * @see org.mitre.oauth2.model.ClientDetailsEntity#isScoped()
175         */
176        public boolean isScoped() {
177                return client.isScoped();
178        }
179        /**
180         * @return
181         * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientId()
182         */
183        public String getClientId() {
184                return client.getClientId();
185        }
186        /**
187         * @param clientId
188         * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientId(java.lang.String)
189         */
190        public void setClientId(String clientId) {
191                client.setClientId(clientId);
192        }
193        /**
194         * @return
195         * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientSecret()
196         */
197        public String getClientSecret() {
198                return client.getClientSecret();
199        }
200        /**
201         * @param clientSecret
202         * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientSecret(java.lang.String)
203         */
204        public void setClientSecret(String clientSecret) {
205                client.setClientSecret(clientSecret);
206        }
207        /**
208         * @return
209         * @see org.mitre.oauth2.model.ClientDetailsEntity#getScope()
210         */
211        public Set<String> getScope() {
212                return client.getScope();
213        }
214        /**
215         * @param scope
216         * @see org.mitre.oauth2.model.ClientDetailsEntity#setScope(java.util.Set)
217         */
218        public void setScope(Set<String> scope) {
219                client.setScope(scope);
220        }
221        /**
222         * @return
223         * @see org.mitre.oauth2.model.ClientDetailsEntity#getGrantTypes()
224         */
225        public Set<String> getGrantTypes() {
226                return client.getGrantTypes();
227        }
228        /**
229         * @param grantTypes
230         * @see org.mitre.oauth2.model.ClientDetailsEntity#setGrantTypes(java.util.Set)
231         */
232        public void setGrantTypes(Set<String> grantTypes) {
233                client.setGrantTypes(grantTypes);
234        }
235        /**
236         * @return
237         * @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorizedGrantTypes()
238         */
239        public Set<String> getAuthorizedGrantTypes() {
240                return client.getAuthorizedGrantTypes();
241        }
242        /**
243         * @return
244         * @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorities()
245         */
246        public Set<GrantedAuthority> getAuthorities() {
247                return client.getAuthorities();
248        }
249        /**
250         * @param authorities
251         * @see org.mitre.oauth2.model.ClientDetailsEntity#setAuthorities(java.util.Set)
252         */
253        public void setAuthorities(Set<GrantedAuthority> authorities) {
254                client.setAuthorities(authorities);
255        }
256        /**
257         * @return
258         * @see org.mitre.oauth2.model.ClientDetailsEntity#getAccessTokenValiditySeconds()
259         */
260        public Integer getAccessTokenValiditySeconds() {
261                return client.getAccessTokenValiditySeconds();
262        }
263        /**
264         * @param accessTokenValiditySeconds
265         * @see org.mitre.oauth2.model.ClientDetailsEntity#setAccessTokenValiditySeconds(java.lang.Integer)
266         */
267        public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) {
268                client.setAccessTokenValiditySeconds(accessTokenValiditySeconds);
269        }
270        /**
271         * @return
272         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRefreshTokenValiditySeconds()
273         */
274        public Integer getRefreshTokenValiditySeconds() {
275                return client.getRefreshTokenValiditySeconds();
276        }
277        /**
278         * @param refreshTokenValiditySeconds
279         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRefreshTokenValiditySeconds(java.lang.Integer)
280         */
281        public void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds) {
282                client.setRefreshTokenValiditySeconds(refreshTokenValiditySeconds);
283        }
284        /**
285         * @return
286         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRedirectUris()
287         */
288        public Set<String> getRedirectUris() {
289                return client.getRedirectUris();
290        }
291        /**
292         * @param redirectUris
293         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRedirectUris(java.util.Set)
294         */
295        public void setRedirectUris(Set<String> redirectUris) {
296                client.setRedirectUris(redirectUris);
297        }
298        /**
299         * @return
300         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRegisteredRedirectUri()
301         */
302        public Set<String> getRegisteredRedirectUri() {
303                return client.getRegisteredRedirectUri();
304        }
305        /**
306         * @return
307         * @see org.mitre.oauth2.model.ClientDetailsEntity#getResourceIds()
308         */
309        public Set<String> getResourceIds() {
310                return client.getResourceIds();
311        }
312        /**
313         * @param resourceIds
314         * @see org.mitre.oauth2.model.ClientDetailsEntity#setResourceIds(java.util.Set)
315         */
316        public void setResourceIds(Set<String> resourceIds) {
317                client.setResourceIds(resourceIds);
318        }
319        /**
320         * @return
321         * @see org.mitre.oauth2.model.ClientDetailsEntity#getAdditionalInformation()
322         */
323        public Map<String, Object> getAdditionalInformation() {
324                return client.getAdditionalInformation();
325        }
326        /**
327         * @return
328         * @see org.mitre.oauth2.model.ClientDetailsEntity#getApplicationType()
329         */
330        public AppType getApplicationType() {
331                return client.getApplicationType();
332        }
333        /**
334         * @param applicationType
335         * @see org.mitre.oauth2.model.ClientDetailsEntity#setApplicationType(org.mitre.oauth2.model.ClientDetailsEntity.AppType)
336         */
337        public void setApplicationType(AppType applicationType) {
338                client.setApplicationType(applicationType);
339        }
340        /**
341         * @return
342         * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientName()
343         */
344        public String getClientName() {
345                return client.getClientName();
346        }
347        /**
348         * @param clientName
349         * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientName(java.lang.String)
350         */
351        public void setClientName(String clientName) {
352                client.setClientName(clientName);
353        }
354        /**
355         * @return
356         * @see org.mitre.oauth2.model.ClientDetailsEntity#getTokenEndpointAuthMethod()
357         */
358        public AuthMethod getTokenEndpointAuthMethod() {
359                return client.getTokenEndpointAuthMethod();
360        }
361        /**
362         * @param tokenEndpointAuthMethod
363         * @see org.mitre.oauth2.model.ClientDetailsEntity#setTokenEndpointAuthMethod(org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod)
364         */
365        public void setTokenEndpointAuthMethod(AuthMethod tokenEndpointAuthMethod) {
366                client.setTokenEndpointAuthMethod(tokenEndpointAuthMethod);
367        }
368        /**
369         * @return
370         * @see org.mitre.oauth2.model.ClientDetailsEntity#getSubjectType()
371         */
372        public SubjectType getSubjectType() {
373                return client.getSubjectType();
374        }
375        /**
376         * @param subjectType
377         * @see org.mitre.oauth2.model.ClientDetailsEntity#setSubjectType(org.mitre.oauth2.model.ClientDetailsEntity.SubjectType)
378         */
379        public void setSubjectType(SubjectType subjectType) {
380                client.setSubjectType(subjectType);
381        }
382        /**
383         * @return
384         * @see org.mitre.oauth2.model.ClientDetailsEntity#getContacts()
385         */
386        public Set<String> getContacts() {
387                return client.getContacts();
388        }
389        /**
390         * @param contacts
391         * @see org.mitre.oauth2.model.ClientDetailsEntity#setContacts(java.util.Set)
392         */
393        public void setContacts(Set<String> contacts) {
394                client.setContacts(contacts);
395        }
396        /**
397         * @return
398         * @see org.mitre.oauth2.model.ClientDetailsEntity#getLogoUri()
399         */
400        public String getLogoUri() {
401                return client.getLogoUri();
402        }
403        /**
404         * @param logoUri
405         * @see org.mitre.oauth2.model.ClientDetailsEntity#setLogoUri(java.lang.String)
406         */
407        public void setLogoUri(String logoUri) {
408                client.setLogoUri(logoUri);
409        }
410        /**
411         * @return
412         * @see org.mitre.oauth2.model.ClientDetailsEntity#getPolicyUri()
413         */
414        public String getPolicyUri() {
415                return client.getPolicyUri();
416        }
417        /**
418         * @param policyUri
419         * @see org.mitre.oauth2.model.ClientDetailsEntity#setPolicyUri(java.lang.String)
420         */
421        public void setPolicyUri(String policyUri) {
422                client.setPolicyUri(policyUri);
423        }
424        /**
425         * @return
426         * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientUri()
427         */
428        public String getClientUri() {
429                return client.getClientUri();
430        }
431        /**
432         * @param clientUri
433         * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientUri(java.lang.String)
434         */
435        public void setClientUri(String clientUri) {
436                client.setClientUri(clientUri);
437        }
438        /**
439         * @return
440         * @see org.mitre.oauth2.model.ClientDetailsEntity#getTosUri()
441         */
442        public String getTosUri() {
443                return client.getTosUri();
444        }
445        /**
446         * @param tosUri
447         * @see org.mitre.oauth2.model.ClientDetailsEntity#setTosUri(java.lang.String)
448         */
449        public void setTosUri(String tosUri) {
450                client.setTosUri(tosUri);
451        }
452        /**
453         * @return
454         * @see org.mitre.oauth2.model.ClientDetailsEntity#getJwksUri()
455         */
456        public String getJwksUri() {
457                return client.getJwksUri();
458        }
459        /**
460         * @param jwksUri
461         * @see org.mitre.oauth2.model.ClientDetailsEntity#setJwksUri(java.lang.String)
462         */
463        public void setJwksUri(String jwksUri) {
464                client.setJwksUri(jwksUri);
465        }
466        /**
467         * @return
468         * @see org.mitre.oauth2.model.ClientDetailsEntity#getSectorIdentifierUri()
469         */
470        public String getSectorIdentifierUri() {
471                return client.getSectorIdentifierUri();
472        }
473        /**
474         * @param sectorIdentifierUri
475         * @see org.mitre.oauth2.model.ClientDetailsEntity#setSectorIdentifierUri(java.lang.String)
476         */
477        public void setSectorIdentifierUri(String sectorIdentifierUri) {
478                client.setSectorIdentifierUri(sectorIdentifierUri);
479        }
480        /**
481         * @return
482         * @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultMaxAge()
483         */
484        public Integer getDefaultMaxAge() {
485                return client.getDefaultMaxAge();
486        }
487        /**
488         * @param defaultMaxAge
489         * @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultMaxAge(java.lang.Integer)
490         */
491        public void setDefaultMaxAge(Integer defaultMaxAge) {
492                client.setDefaultMaxAge(defaultMaxAge);
493        }
494        /**
495         * @return
496         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequireAuthTime()
497         */
498        public Boolean getRequireAuthTime() {
499                return client.getRequireAuthTime();
500        }
501        /**
502         * @param requireAuthTime
503         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequireAuthTime(java.lang.Boolean)
504         */
505        public void setRequireAuthTime(Boolean requireAuthTime) {
506                client.setRequireAuthTime(requireAuthTime);
507        }
508        /**
509         * @return
510         * @see org.mitre.oauth2.model.ClientDetailsEntity#getResponseTypes()
511         */
512        public Set<String> getResponseTypes() {
513                return client.getResponseTypes();
514        }
515        /**
516         * @param responseTypes
517         * @see org.mitre.oauth2.model.ClientDetailsEntity#setResponseTypes(java.util.Set)
518         */
519        public void setResponseTypes(Set<String> responseTypes) {
520                client.setResponseTypes(responseTypes);
521        }
522        /**
523         * @return
524         * @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultACRvalues()
525         */
526        public Set<String> getDefaultACRvalues() {
527                return client.getDefaultACRvalues();
528        }
529        /**
530         * @param defaultACRvalues
531         * @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultACRvalues(java.util.Set)
532         */
533        public void setDefaultACRvalues(Set<String> defaultACRvalues) {
534                client.setDefaultACRvalues(defaultACRvalues);
535        }
536        /**
537         * @return
538         * @see org.mitre.oauth2.model.ClientDetailsEntity#getInitiateLoginUri()
539         */
540        public String getInitiateLoginUri() {
541                return client.getInitiateLoginUri();
542        }
543        /**
544         * @param initiateLoginUri
545         * @see org.mitre.oauth2.model.ClientDetailsEntity#setInitiateLoginUri(java.lang.String)
546         */
547        public void setInitiateLoginUri(String initiateLoginUri) {
548                client.setInitiateLoginUri(initiateLoginUri);
549        }
550        /**
551         * @return
552         * @see org.mitre.oauth2.model.ClientDetailsEntity#getPostLogoutRedirectUri()
553         */
554        public String getPostLogoutRedirectUri() {
555                return client.getPostLogoutRedirectUri();
556        }
557        /**
558         * @param postLogoutRedirectUri
559         * @see org.mitre.oauth2.model.ClientDetailsEntity#setPostLogoutRedirectUri(java.lang.String)
560         */
561        public void setPostLogoutRedirectUri(String postLogoutRedirectUri) {
562                client.setPostLogoutRedirectUri(postLogoutRedirectUri);
563        }
564        /**
565         * @return
566         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestUris()
567         */
568        public Set<String> getRequestUris() {
569                return client.getRequestUris();
570        }
571        /**
572         * @param requestUris
573         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestUris(java.util.Set)
574         */
575        public void setRequestUris(Set<String> requestUris) {
576                client.setRequestUris(requestUris);
577        }
578        /**
579         * @return
580         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestObjectSigningAlgEmbed()
581         */
582        public JWSAlgorithmEmbed getRequestObjectSigningAlgEmbed() {
583                return client.getRequestObjectSigningAlgEmbed();
584        }
585
586        /**
587         * @param requestObjectSigningAlg
588         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestObjectSigningAlgEmbed(org.mitre.jose.JWSAlgorithmEmbed)
589         */
590        public void setRequestObjectSigningAlgEmbed(JWSAlgorithmEmbed requestObjectSigningAlg) {
591                client.setRequestObjectSigningAlgEmbed(requestObjectSigningAlg);
592        }
593
594        /**
595         * @return
596         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoSignedResponseAlgEmbed()
597         */
598        public JWSAlgorithmEmbed getUserInfoSignedResponseAlgEmbed() {
599                return client.getUserInfoSignedResponseAlgEmbed();
600        }
601
602        /**
603         * @param userInfoSignedResponseAlg
604         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoSignedResponseAlgEmbed(org.mitre.jose.JWSAlgorithmEmbed)
605         */
606        public void setUserInfoSignedResponseAlgEmbed(JWSAlgorithmEmbed userInfoSignedResponseAlg) {
607                client.setUserInfoSignedResponseAlgEmbed(userInfoSignedResponseAlg);
608        }
609
610        /**
611         * @return
612         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseAlgEmbed()
613         */
614        public JWEAlgorithmEmbed getUserInfoEncryptedResponseAlgEmbed() {
615                return client.getUserInfoEncryptedResponseAlgEmbed();
616        }
617
618        /**
619         * @param userInfoEncryptedResponseAlg
620         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseAlgEmbed(org.mitre.jose.JWEAlgorithmEmbed)
621         */
622        public void setUserInfoEncryptedResponseAlgEmbed(JWEAlgorithmEmbed userInfoEncryptedResponseAlg) {
623                client.setUserInfoEncryptedResponseAlgEmbed(userInfoEncryptedResponseAlg);
624        }
625
626        /**
627         * @return
628         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseEncEmbed()
629         */
630        public JWEEncryptionMethodEmbed getUserInfoEncryptedResponseEncEmbed() {
631                return client.getUserInfoEncryptedResponseEncEmbed();
632        }
633
634        /**
635         * @param userInfoEncryptedResponseEnc
636         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseEncEmbed(org.mitre.jose.JWEEncryptionMethodEmbed)
637         */
638        public void setUserInfoEncryptedResponseEncEmbed(JWEEncryptionMethodEmbed userInfoEncryptedResponseEnc) {
639                client.setUserInfoEncryptedResponseEncEmbed(userInfoEncryptedResponseEnc);
640        }
641
642        /**
643         * @return
644         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenSignedResponseAlgEmbed()
645         */
646        public JWSAlgorithmEmbed getIdTokenSignedResponseAlgEmbed() {
647                return client.getIdTokenSignedResponseAlgEmbed();
648        }
649
650        /**
651         * @param idTokenSignedResponseAlg
652         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenSignedResponseAlgEmbed(org.mitre.jose.JWSAlgorithmEmbed)
653         */
654        public void setIdTokenSignedResponseAlgEmbed(JWSAlgorithmEmbed idTokenSignedResponseAlg) {
655                client.setIdTokenSignedResponseAlgEmbed(idTokenSignedResponseAlg);
656        }
657
658        /**
659         * @return
660         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseAlgEmbed()
661         */
662        public JWEAlgorithmEmbed getIdTokenEncryptedResponseAlgEmbed() {
663                return client.getIdTokenEncryptedResponseAlgEmbed();
664        }
665
666        /**
667         * @param idTokenEncryptedResponseAlg
668         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseAlgEmbed(org.mitre.jose.JWEAlgorithmEmbed)
669         */
670        public void setIdTokenEncryptedResponseAlgEmbed(JWEAlgorithmEmbed idTokenEncryptedResponseAlg) {
671                client.setIdTokenEncryptedResponseAlgEmbed(idTokenEncryptedResponseAlg);
672        }
673
674        /**
675         * @return
676         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseEncEmbed()
677         */
678        public JWEEncryptionMethodEmbed getIdTokenEncryptedResponseEncEmbed() {
679                return client.getIdTokenEncryptedResponseEncEmbed();
680        }
681
682        /**
683         * @param idTokenEncryptedResponseEnc
684         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseEncEmbed(org.mitre.jose.JWEEncryptionMethodEmbed)
685         */
686        public void setIdTokenEncryptedResponseEncEmbed(JWEEncryptionMethodEmbed idTokenEncryptedResponseEnc) {
687                client.setIdTokenEncryptedResponseEncEmbed(idTokenEncryptedResponseEnc);
688        }
689
690        /**
691         * @return
692         * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestObjectSigningAlg()
693         */
694        public JWSAlgorithm getRequestObjectSigningAlg() {
695                return client.getRequestObjectSigningAlg();
696        }
697
698        /**
699         * @param requestObjectSigningAlg
700         * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestObjectSigningAlg(com.nimbusds.jose.JWSAlgorithm)
701         */
702        public void setRequestObjectSigningAlg(JWSAlgorithm requestObjectSigningAlg) {
703                client.setRequestObjectSigningAlg(requestObjectSigningAlg);
704        }
705
706        /**
707         * @return
708         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoSignedResponseAlg()
709         */
710        public JWSAlgorithm getUserInfoSignedResponseAlg() {
711                return client.getUserInfoSignedResponseAlg();
712        }
713
714        /**
715         * @param userInfoSignedResponseAlg
716         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm)
717         */
718        public void setUserInfoSignedResponseAlg(JWSAlgorithm userInfoSignedResponseAlg) {
719                client.setUserInfoSignedResponseAlg(userInfoSignedResponseAlg);
720        }
721
722        /**
723         * @return
724         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseAlg()
725         */
726        public JWEAlgorithm getUserInfoEncryptedResponseAlg() {
727                return client.getUserInfoEncryptedResponseAlg();
728        }
729
730        /**
731         * @param userInfoEncryptedResponseAlg
732         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm)
733         */
734        public void setUserInfoEncryptedResponseAlg(JWEAlgorithm userInfoEncryptedResponseAlg) {
735                client.setUserInfoEncryptedResponseAlg(userInfoEncryptedResponseAlg);
736        }
737
738        /**
739         * @return
740         * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseEnc()
741         */
742        public EncryptionMethod getUserInfoEncryptedResponseEnc() {
743                return client.getUserInfoEncryptedResponseEnc();
744        }
745
746        /**
747         * @param userInfoEncryptedResponseEnc
748         * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod)
749         */
750        public void setUserInfoEncryptedResponseEnc(EncryptionMethod userInfoEncryptedResponseEnc) {
751                client.setUserInfoEncryptedResponseEnc(userInfoEncryptedResponseEnc);
752        }
753
754        /**
755         * @return
756         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenSignedResponseAlg()
757         */
758        public JWSAlgorithm getIdTokenSignedResponseAlg() {
759                return client.getIdTokenSignedResponseAlg();
760        }
761
762        /**
763         * @param idTokenSignedResponseAlg
764         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm)
765         */
766        public void setIdTokenSignedResponseAlg(JWSAlgorithm idTokenSignedResponseAlg) {
767                client.setIdTokenSignedResponseAlg(idTokenSignedResponseAlg);
768        }
769
770        /**
771         * @return
772         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseAlg()
773         */
774        public JWEAlgorithm getIdTokenEncryptedResponseAlg() {
775                return client.getIdTokenEncryptedResponseAlg();
776        }
777
778        /**
779         * @param idTokenEncryptedResponseAlg
780         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm)
781         */
782        public void setIdTokenEncryptedResponseAlg(JWEAlgorithm idTokenEncryptedResponseAlg) {
783                client.setIdTokenEncryptedResponseAlg(idTokenEncryptedResponseAlg);
784        }
785
786        /**
787         * @return
788         * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseEnc()
789         */
790        public EncryptionMethod getIdTokenEncryptedResponseEnc() {
791                return client.getIdTokenEncryptedResponseEnc();
792        }
793
794        /**
795         * @param idTokenEncryptedResponseEnc
796         * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod)
797         */
798        public void setIdTokenEncryptedResponseEnc(EncryptionMethod idTokenEncryptedResponseEnc) {
799                client.setIdTokenEncryptedResponseEnc(idTokenEncryptedResponseEnc);
800        }
801
802        /**
803         * @return
804         * @see org.mitre.oauth2.model.ClientDetailsEntity#getTokenEndpointAuthSigningAlgEmbed()
805         */
806        public JWSAlgorithmEmbed getTokenEndpointAuthSigningAlgEmbed() {
807                return client.getTokenEndpointAuthSigningAlgEmbed();
808        }
809
810        /**
811         * @param tokenEndpointAuthSigningAlgEmbed
812         * @see org.mitre.oauth2.model.ClientDetailsEntity#setTokenEndpointAuthSigningAlgEmbed(org.mitre.jose.JWSAlgorithmEmbed)
813         */
814        public void setTokenEndpointAuthSigningAlgEmbed(JWSAlgorithmEmbed tokenEndpointAuthSigningAlgEmbed) {
815                client.setTokenEndpointAuthSigningAlgEmbed(tokenEndpointAuthSigningAlgEmbed);
816        }
817
818        /**
819         * @return
820         * @see org.mitre.oauth2.model.ClientDetailsEntity#getTokenEndpointAuthSigningAlg()
821         */
822        public JWSAlgorithm getTokenEndpointAuthSigningAlg() {
823                return client.getTokenEndpointAuthSigningAlg();
824        }
825
826        /**
827         * @param tokenEndpointAuthSigningAlg
828         * @see org.mitre.oauth2.model.ClientDetailsEntity#setTokenEndpointAuthSigningAlg(com.nimbusds.jose.JWSAlgorithm)
829         */
830        public void setTokenEndpointAuthSigningAlg(JWSAlgorithm tokenEndpointAuthSigningAlg) {
831                client.setTokenEndpointAuthSigningAlg(tokenEndpointAuthSigningAlg);
832        }
833
834        /**
835         * @return
836         * @see org.mitre.oauth2.model.ClientDetailsEntity#getCreatedAt()
837         */
838        public Date getCreatedAt() {
839                return client.getCreatedAt();
840        }
841        /**
842         * @param createdAt
843         * @see org.mitre.oauth2.model.ClientDetailsEntity#setCreatedAt(java.util.Date)
844         */
845        public void setCreatedAt(Date createdAt) {
846                client.setCreatedAt(createdAt);
847        }
848        /**
849         * @return the registrationAccessToken
850         */
851        public String getRegistrationAccessToken() {
852                return registrationAccessToken;
853        }
854        /**
855         * @param registrationAccessToken the registrationAccessToken to set
856         */
857        public void setRegistrationAccessToken(String registrationAccessToken) {
858                this.registrationAccessToken = registrationAccessToken;
859        }
860        /**
861         * @return the registrationClientUri
862         */
863        public String getRegistrationClientUri() {
864                return registrationClientUri;
865        }
866        /**
867         * @param registrationClientUri the registrationClientUri to set
868         */
869        public void setRegistrationClientUri(String registrationClientUri) {
870                this.registrationClientUri = registrationClientUri;
871        }
872        /**
873         * @return the clientSecretExpiresAt
874         */
875        public Date getClientSecretExpiresAt() {
876                return clientSecretExpiresAt;
877        }
878        /**
879         * @param clientSecretExpiresAt the clientSecretExpiresAt to set
880         */
881        public void setClientSecretExpiresAt(Date expiresAt) {
882                this.clientSecretExpiresAt = expiresAt;
883        }
884        /**
885         * @return the clientIdIssuedAt
886         */
887        public Date getClientIdIssuedAt() {
888                return clientIdIssuedAt;
889        }
890        /**
891         * @param clientIdIssuedAt the clientIdIssuedAt to set
892         */
893        public void setClientIdIssuedAt(Date issuedAt) {
894                this.clientIdIssuedAt = issuedAt;
895        }
896
897
898
899}