public void bindToAnyDelegationToken ( ) throws IOException { validateAccessTokenProvider ( ) ; Token < DelegationTokenIdentifier > token = selectTokenFromFsOwner ( ) ; if ( token != null ) { bindToDelegationToken ( token ) ; } else { deployUnbonded ( ) ; } if ( accessTokenProvider == null ) { throw new DelegationTokenIOException ( "No AccessTokenProvider created by Delegation Token Binding " + tokenBinding . getKind ( ) ) ; } }
Attempt to bind to any existing DT including unmarshalling its contents and creating the GCP credential provider used to authenticate the client .