{@link Credential} holds data in a persistence-friendly way,and it's capable of creating {@link SVNAuthentication} object,to be passed to SVNKit.
919293949596979899100101
} public static void main(String[] args) throws Exception { // Generate a refreshable OAuth2 credential, which replaces legacy passwords // and can be used in place of a service account. Credential oAuth2Credential = new OfflineCredentials.Builder() .forApi(Api.DFA) .fromFile() .build() .generateCredential();
6061626364656667686970
8182838485868788899091
6566676869707172737475
7071727374757677787980
} public static void main(String[] args) throws Exception { // Generate a refreshable OAuth2 credential similar to a ClientLogin token // and can be used in place of a service account. Credential oAuth2Credential = new OfflineCredentials.Builder() .forApi(Api.DFP) .fromFile() .build() .generateCredential();
6869707172737475767778
6768697071727374757677
96979899100101102103104105106